Jump to content

Recommended Posts

Posted (edited)

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
action=9&refer=null&useragent=Mozilla%2F4%2E0%20%28compatible%3B%20MSIE%208%2E0%3B%20Windows%20NT%205%2E1%3B%20Trident%2F4%2E0%3B%20%2ENET%20CLR%202%2E0%2E50727%3B%20%2ENET%20CLR%203%2E0%2E4506%2E2152%3B%20%2ENET%20CLR%203%2E5%2E30729%3B%20InfoPath%2E2%29&z=0%2E2714101579040289&hash=6f68cdcfa9c796635a6e60639805a4fd&log%5Fid=5d096a19c49f4ffeb3aaa9886b8a3190&ver=1022&ident=undefined&x=0
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

Edited by DUNGYEUANH
Posted

Hi,

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")
$oWinHTTP.Send()
ConsoleWrite($oWinHTTP.GetAllResponseHeaders & @CRLF)
Posted

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

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
×
×
  • Create New...