luckyluke Posted June 6, 2017 Share Posted June 6, 2017 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 Link to comment Share on other sites More sharing options...
Danyfirex Posted June 6, 2017 Share Posted June 6, 2017 It's working right for me. You also can use WinHTTP UDF Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
luckyluke Posted June 6, 2017 Author Share Posted June 6, 2017 14 minutes ago, Danyfirex said: It's working right for me. You also can use WinHTTP UDF Saludos that is strange, i am using wins7 64bit, not sure what is the problem Link to comment Share on other sites More sharing options...
Danyfirex Posted June 6, 2017 Share Posted June 6, 2017 I use Window 10. Try the WinHTTP UDF. Saludos luckyluke 1 Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
luckyluke Posted June 7, 2017 Author Share Posted June 7, 2017 (edited) 10 hours ago, Danyfirex said: I use Window 10. Try the WinHTTP UDF. Saludos Thank you. Actually, i am trying to use http request in VBA and it does not work, so i come to autoit and try it but it does not work too. So, how can i make it work if i only want to use http request? Edited June 7, 2017 by luckyluke Link to comment Share on other sites More sharing options...
Danyfirex Posted June 7, 2017 Share Posted June 7, 2017 Take a look to winhttp help file. it's easy. Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
luckyluke Posted June 12, 2017 Author Share Posted June 12, 2017 On 6/7/2017 at 5:33 PM, Danyfirex said: Take a look to winhttp help file. it's easy. Saludos thank you Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now