Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 02:28

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



WinHttp Addmefast.com

Discussion on WinHttp Addmefast.com within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
butter123's Avatar
 
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
WinHttp Addmefast.com

Moin,

so ich wage mich jetzt auch mal an Winhttp ran und versuche das ganze an addmefast.com.

Erster schritt ist das einloggen.

Wenn ich mit LiveHttp einfach das Post packet wiederhole funktionierts, mach ich das jedoch in autoit, läufts nicht.

das ist mein code:

PHP Code:
#include<winhttp.au3>

Initialize and get session handle
 
Global $hOpen _WinHttpOpen("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0")
Get connection handle
 
Global $hConnect _WinHttpConnect($hOpen"www.addmefast.com")


Simple-request it...
FileWrite("addmefast.com.html",_WinHttpSimpleRequest($hConnect))
FileWrite("login.html",_WinHttpSimpleRequest($hConnect,"POST","addmefast.com","http://addmefast.com/","email=*****%40gmail.com&password=****&remember=1&login_button=Login"))



Close handles
_WinHttpCloseHandle
($hConnect)
_WinHttpCloseHandle($hOpen
Hier der mitschnitt von livehttp:

bei einem bananenkönig tutorial an dem ich mich orientiert habe hat das so einfach funktioniert.

gruß
butter
butter123 is offline  
Old 10/25/2013, 17:09   #2
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Du könntest versuchen erstmal die Hauptseite anzufordern, wenn dein Ref nämlich nichts ist könnten die Stress machen.

Außerdem postest du das falsch,
Code:
_WinHttpSimpleRequest($hConnect, "POST", "", "www.addmefast.com")
der 3. Parameter ist der Pfad des Servers, das ist in diesem Fall frei, da nichts nach dem Slash von addmefast.com/ steht.
alpines is offline  
Old 10/25/2013, 17:29   #3
 
butter123's Avatar
 
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
PHP Code:
_FileWrite("addmefast.com.html",_WinHttpSimpleRequest($hConnect,"GET",""))
_FileWrite("login.html",_WinHttpSimpleRequest($hConnect,"POST","","http://addmefast.com/","email=***%40gmail.com&password=***&remember=1&login_button=Login")) 
ändert leider nichts


damit hats jetzt geklappt:

PHP Code:
Initialize and get session handle
$hOpen 
_WinHttpOpen("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0")
Get connection handle
$hConnect 
_WinHttpConnect($hOpen"addmefast.com")


Simple-request it...
$hRequest _WinHttpOpenRequest($hConnect,"POST","","""http://addmefast.com/","")

_WinHttpSendRequest($hRequest"Content-Type: application/x-www-form-urlencoded""email=***%40gmail.com&password=***&remember=1&login_button=Login")

Wait for the response
_WinHttpReceiveResponse
($hRequest)


Global 
$sReturned
 
If _WinHttpQueryDataAvailable($hRequestThen ; if there is data
    
Do
        
$sReturned &= _WinHttpReadData($hRequest)
    
Until @error
 
EndIf ; Close handles


See what's returned
_filewrite("test.html",$sReturned) 
wobei bei _WinHttpConnect($hOpen, "addmefast.com") kein www. drin vorkommen darf.... das daraus nen fehler entsteht^^





falls jemand lust hat mit zu werkeln, kann ich gerne eine dropbox öffnen.

bisher steht nur der login und jetzt wirds schwieriger^^
butter123 is offline  
Reply


Similar Threads Similar Threads
[S] Hilfe bei WinHttp
06/22/2013 - AutoIt - 13 Replies
Hi Leutz hab die letzten Tage mir die Tut´s hier angeschaut und mal drauf los geschrieben dabei raus gekommen ist das. http://i.imgur.com/s4E6RC5.png #region ###Includes###
Addmefast Bot – Earn thousands of addmefast points on autopilot!
11/16/2012 - elite*gold Trading - 6 Replies
Offiziele Seite - Klick Infos: Ich biete hier einen selbst erkaufen Bot an , den ich jetzt leider nicht mehr brauche , weil ich dafür keine Zeit mehr habe.Er hat mir sehr gut Points gebracht.In 2 stunden brachte er mir 600 points aber das kommt ganz auf eure Einstellungen an , wie viele points er euch später einmal einbringen wird.Instragram wurde zu dem Bot auch schon geaddet , wird nur noch nicht auf der Website angezeigt. Preis: Momentan kostet der Bot auf der Offizielen Seite...
Help with winhttp
09/21/2011 - AutoIt - 5 Replies
Hi there, I'm trying to learn winhttp functions from winhttp udf. I would like to automate facebook forms with it. but i don't know how to get fb forms info for headers and etc. does anyone here knows a good documentation or even better a working example code for fb? -Note: i've tried wireshark but it doesnt support my network interface.
WINHTTP.dLL
07/02/2006 - Technical Support - 2 Replies
Hilfe Ich da ich heute Formatiert habe und alles neu drauf laden musste usw..... hab ich nun ein neues problem MSN will nicht Starten begründung winHTTP.dll wurde nicht gefunden!



All times are GMT +1. The time now is 02:30.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.