problem Posted January 29, 2013 Share Posted January 29, 2013 (edited) Hi. I have problem with this script. global $ohttp = ObjCreate("winhttp.winhttprequest.5.1") $ohttp.open("GET", "http://www.profitclicking.com/captcha/image.jpg?type=image&id=971c68a17ccc52be90f672d614d5ebe2, false) $ohttp.setrequestheader("Host", "www.profitclicking.com") $ohttp.setrequestheader("User-Agent", "Mozilla/5.0 (Windows NT 6.0; rv:13.0) Gecko/20100101 Firefox/13.0.1") $ohttp.setrequestheader("Accept", "image/png,image/*;q=0.8,*/*;q=0.5") $ohttp.setrequestheader("Accept-Language", "pl,en-us;q=0.7,en;q=0.3") $ohttp.setrequestheader("Connection", "keep-alive") $ohttp.send FileWrite($captcha&".jpg", $ohttp.responsebody) ;save file to jpg This script is working, but something is problem with $ohttp.send . I want chance this code. How chance $ohttp.responsebody when i use library winhttp.au3. When I check @error for this $ohttp.send there is no change, status is 200. How i can fix this problem? Edited January 29, 2013 by problem Link to comment Share on other sites More sharing options...
trancexx Posted January 29, 2013 Share Posted January 29, 2013 What is this _winhttp.au3? ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
problem Posted January 29, 2013 Author Share Posted January 29, 2013 I mean for example, these functions _WinHttpOpen, _WinHttpConnect, _WinHttpOpenRequest, _WinHttpAddRequestHeaders, _WinHttpSend, .... Link to comment Share on other sites More sharing options...
trancexx Posted January 29, 2013 Share Posted January 29, 2013 Aha, you mean WinHttp.au3. That non-standard UDF comes with its own help file in which every function is explained in detail with bunch of examples included. Check there and see if it would help. ♡♡♡ . eMyvnE 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