Jump to content
Sign in to follow this  
problem

Change COM for winhttp.au3

Recommended Posts

problem

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 by problem

Share this post


Link to post
Share on other sites
trancexx

What is this _winhttp.au3?


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
problem

I mean for example, these functions _WinHttpOpen, _WinHttpConnect, _WinHttpOpenRequest, _WinHttpAddRequestHeaders, _WinHttpSend, ....

Share this post


Link to post
Share on other sites
trancexx

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

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  

×