Sign in to follow this  
Followers 0
problem

Winhttp - problem with save data

5 posts in this topic

Hi. I have program in winhttp.

#include <WinHTTP.au3>
$handlewinhttp = _WinHttpOpen("User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0")
$connect = _winhttpconnect($handlewinhttp, "www.clickpaid.com")
$request = _winhttpopenrequest($connect, "GET", "/captcha/captcha.php")
_winhttpaddrequestheaders($request, "Accept: image/png,image/*;q=0.8,*/*;q=0.5")
_winhttpaddrequestheaders($request, "Accept-Language: pl,en-us;q=0.7,en;q=0.3")
_winhttpaddrequestheaders($request, "Referer: http://www.clickpaid.com/")
_winhttpaddrequestheaders($request, "Connection: keep-alive")
_winhttpsendrequest($request)
_winhttpreceiveresponse($request)

$info = ""
Do
$info &= _winhttpreaddata($request,0)
Until @error
consolewrite($info)
_WINHTTPCLOSEHANDLE($request)
_WINHTTPCLOSEHANDLE($connect)
_WINHTTPCLOSEHANDLE($handlewinhttp)

I want save this captcha but I get empty response. How else can I save? 

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

hi, from help file:

<snip?

saludos

Edited by Melba23
Code removed until the CAPTCHA is explained

Share this post


Link to post
Share on other sites

problem,

Can you please explain this line:

$request = _winhttpopenrequest($connect, "GET", "/captcha/captcha.php")
Why do you want the CAPTCHA? :huh:

 

M23

1 person likes this

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

After logging on the website is another captcha which I need to click on the ads. The captcha codes are made the same.

This link received from the Live HTTP Headers. 

http://www.clickpaid.com/captcha/captcha.php

GET /captcha/captcha.php HTTP/1.1
Host: www.clickpaid.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20100101 Firefox/22.0
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: pl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://www.clickpaid.com/
Cookie: __auc=f102081413fa296fd05697fc38f; __utma=64604797.1741239045.1372822373.1373606493.1373653065.17; __utmz=64604797.1373653065.17.14.utmcsr=bannersbroker.com|utmccn=(referral)|utmcmd=referral|utmcct=/incentives/click_adspot; __atuvc=4%7C27%2C7%7C28; clickpaid=bkuh49daee4cbctqr27jtc3o63; __asc=c3abeda913fd41a58669944b79d; __utmb=64604797.6.10.1373653065
Connection: keep-alive
Edited by problem

Share this post


Link to post
Share on other sites

problem,

We do not help automate "pay per click" sites. Thread locked. :naughty:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0