hi all,
i tried to access to the website https://www.auction.com/residential/ with http request.
here is the code:
Global $oHTTP = ObjCreate("winhttp.winhttprequest.5.1"), $date, $limit, $rdir, $wpdir
$agent ='Mozilla/5.0 (Linux; Android 4.4.2; Nexus 4 Build/KOT49H) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.114 Mobile Safari/537.36'
$url = 'https://www.auction.com/residential/'
ConsoleWrite($url & @CRLF)
$oHTTP.Open("GET", $url, False)
$oHTTP.setRequestHeader ("User-Agent", $agent)
;$oHTTP.Option(4) = 13056
$oHTTP.Send()
$srcHTML = ($oHTTP.ResponseText)
ConsoleWrite($srcHTML & @CRLF)
But when i run it, i always get the error:
==> The requested action with this object has failed.:
$oHTTP.Send()
$oHTTP^ ERROR
for other website, it is working well, but this one does not. Pls help me