Jump to content

Change COM for winhttp.au3


problem
 Share

Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...