How to extract HTML file after sending Password through WinHTTP?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ssh003
Posts: 4
Joined: 15 Jul 2018, 05:34

How to extract HTML file after sending Password through WinHTTP?

15 Jul 2018, 18:08

I'm making about manga download program
actually most of pages already finished
but i can't do anything some left pages which have password
all of those pages have same password
qndxkr

For example the first is manga that doesn't have password
http://wasabisyrup.com/archives/63956
Spoiler
and this is the manga that has password
http://wasabisyrup.com/archives/cBv0OKkDj3A

password is the "qndxkr"
I really don't know how can i download that....
how can i send the password then extract the HTML file

just this is the what i want to kno
how to send the password then how can i extract it with HTML file
Freire
Posts: 16
Joined: 10 Dec 2017, 11:30

Re: How to extract HTML file after sending Password through WinHTTP?

17 Jul 2018, 23:22

As suggested on discord. This may not be the final solution, but it's working at the moment.
Get a cookie of the logged website: Apparently for this website the Key is PHPSESSID.
Put it into the request headers and you should be able to access the protected page.

Code: Select all

request.SetRequestHeader("Cookie", "PHPSESSID=xxxxxxxxxxxxxxxxxxxx; Path=/Page")
This is worked for me. "xxxxxxxxxxxxxxx" should be the value of the cookie in your browser.
For testing I wrote this code above the line 38 where the "Referer" is set.

EDIT:
There is an elaborated solution here:
[How To] Do logins using the WinHttpRequest COM - Tutorials

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Descolada and 258 guests