Jump to content
Sign in to follow this  

Winhttp callback

Recommended Posts


Hello there.

When I use the browser to access abc.com website. I get a code:

POST /callback/5d096a19c49f4ffeb3aaa9886b8a3190 HTTP/1.1
Accept: */*
Accept-Language: en-US
Referer: http ://abc.com/omnigy7425325409.swf
x-flash-version: 11,0,1,152
Content-Type: application/x-www-form-urlencoded
Content-Length: 387
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)
Host: abc.com
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: abc1=66dded357548ec7a6b537afe6f759302; abc2=0d232a8610c9dde8c864b3694761e217; __utma=255621336.1422406629.1323677349.1323677349.1323709727.2; __utmz=255621336.1323677349.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); abc4=35d97f5c5ea4b65e7c626125248467f1; abccom_38235=255652; market_38235=255652; abccom_63686=279956; market_63686=279956; PHPSESSID=699c53580a93a98b38f06a04933afad5; abccom_63720=280364; market_63720=280364
HTTP/1.1 200 OK
Content-Encoding: gzip
Vary: Accept-Encoding
Date: Mon, 12 Dec 2011 18:59:30 GMT
Server: LiteSpeed
Connection: close
X-Powered-By: PHP/5.3.8
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/html
Content-Length: 20

so how can I do the same thing with winhttp


Share this post

Link to post
Share on other sites


Not sure what 'code' you are talking about, do you just need the headers? or something more specific?

Here is something to help you on your way with the headers....

$oWinHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oWinHTTP.open("HEAD", "http://abc.com")
ConsoleWrite($oWinHTTP.GetAllResponseHeaders & @CRLF)

Share this post

Link to post
Share on other sites

Sr, my english is terrible

When I visit the website abc.com, I have to wait 30 seconds before a countdown button appears. When cowndown = 0, I get this code from ieHTTPheaders

How do I not have to wait 30 seconds? For IE, I can use a small javascript piece, but not winhttp

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.