goflago Posted June 26, 2006 Share Posted June 26, 2006 (edited) Like before I wanted to login and post to Gaiaonline.com. I figured out that it is possible to use WinHttpRequest to accomplish this. But, I don't know how. Can anyone give me an example of how to send data to a server and recieve back a cookie, include that cookie into the header of the next send, set the data of the next send, and finally send the data? I know I'm not very good at explaining what I want, but I don't know how to say it any other way T_T. Ok, why doesn't the below script that I made work? ;Settings $Username = "" $Password = "" $Topic = "" $Forum = "" ;Navigate to Gaia Online & grab "gaia2_sid" cookie. $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") $oHTTP.Open("GET","http://www.gaiaonline.com",False) $oHTTP.Send() $gaia2_sid = $oHTTP.GetResponseHeader("Set-Cookie: gaia2_sid") ;Login to Gaia Online $oHTTP.Open("POST","http://www.gaiaonline.com/gaia/login.php",False) $Sid = StringTrimLeft($gaia2_sid,10) $Sid = StringLeft($Sid,32) $Login = "username=" & $Username & "&password=" & $Password & "&x=22&y=22&submit=Login&sid=" & $Sid $oHTTP.Send($Login) Edited June 26, 2006 by goflago Link to comment Share on other sites More sharing options...
NELyon Posted June 26, 2006 Share Posted June 26, 2006 are you just making this to get a little extra gold? cheater Link to comment Share on other sites More sharing options...
AzKay Posted June 26, 2006 Share Posted June 26, 2006 Hmm, not that im helping, but seems gaia is getting bigger =P more people talking about it here, your the 4th ive seen in like 2 weeks # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
NELyon Posted June 26, 2006 Share Posted June 26, 2006 am i the fifth? Link to comment Share on other sites More sharing options...
AzKay Posted June 26, 2006 Share Posted June 26, 2006 I think I included you ;once again, a useless post # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
NELyon Posted June 26, 2006 Share Posted June 26, 2006 (edited) :::BACK ON TOPIS:::: This would be a little messy but why not just simulate mousemoves and sends? :::::I CANT SPELL TOPIS TOPIK WHATEVER:::: Edited June 26, 2006 by codemyster Link to comment Share on other sites More sharing options...
goflago Posted June 26, 2006 Author Share Posted June 26, 2006 (edited) are you just making this to get a little extra gold? cheater A little? Lol, my IE.au3 based bot got me quite a lot of gold for a little effort(Over 50k in 4 days). But, if I can accomplish this winhttp based bot I can bring in much, much more than my IE.au3 based one. I could post in a more reliable fashion, lower my bandwidth intake, and I could post with multiple bots at one time! Think about 10 bots posting once ever 51 seconds for 4 gold each post. Then with each post followed by a poll for 10 gold each. So, 14 gold per post/poll every 51 seconds. Imagine how much you could make in one hour! 10*14*70 = 9800. That's about 9,800 gold per hour! Amazing. But, I need to find out how to make it work. T_TEDIT: I already completed a bot for form filling in IE.au3. I posted it in my previous topic. Link Edited June 26, 2006 by goflago Link to comment Share on other sites More sharing options...
NELyon Posted June 26, 2006 Share Posted June 26, 2006 My gold maker (AZKay, you know about it) makes me about 300 gold in a 3 hour span Link to comment Share on other sites More sharing options...
goflago Posted June 26, 2006 Author Share Posted June 26, 2006 (edited) ;Settings $Username = "" $Password = "" $Topic = "" $Forum = "" ;Navigate to Gaia Online & grab "gaia2_sid" cookie. $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") $oHTTP.Open("GET","http://www.gaiaonline.com",False) $oHTTP.Send() $gaia2_sid = $oHTTP.GetResponseHeader("Set-Cookie: gaia2_sid") ;Login to Gaia Online $oHTTP.Open("POST","http://www.gaiaonline.com/gaia/login.php",False) $Sid = StringTrimLeft($gaia2_sid,10) $Sid = StringLeft($Sid,32) $Login = "username=" & $Username & "&password=" & $Password & "&x=22&y=22&submit=Login&sid=" & $Sid $oHTTP.Send($Login) This is what I have so far. Can somebody tell me what I'm doing wrong? Edited June 26, 2006 by goflago Link to comment Share on other sites More sharing options...
NELyon Posted June 26, 2006 Share Posted June 26, 2006 yo, i'm trying out your ie.au3 based one. Link to comment Share on other sites More sharing options...
goflago Posted June 26, 2006 Author Share Posted June 26, 2006 Does anyone know anything about this? Link to comment Share on other sites More sharing options...
goflago Posted June 26, 2006 Author Share Posted June 26, 2006 (edited) No matter how many times I attempt this I can only get back a 404 Not Found response from the "POST" section. Why? Edited June 26, 2006 by goflago Link to comment Share on other sites More sharing options...
goflago Posted June 27, 2006 Author Share Posted June 27, 2006 OMFGWTFBBQ! I just had to add two headers. This is fixed for the moment, so don't bother untill I quadruple post tomarrow because my posting has errors. Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted June 27, 2006 Share Posted June 27, 2006 goflago as everyone was saying check out IE.au3 it will make it so you dont have to use obj's http://www.autoitscript.com/forum/index.php?showtopic=25629 Link to comment Share on other sites More sharing options...
goflago Posted June 27, 2006 Author Share Posted June 27, 2006 goflago as everyone was saying check out IE.au3 it will make it so you dont have to use obj's http://www.autoitscript.com/forum/index.php?showtopic=25629Can you use multiple accounts in IE? I tried logging on 2 users, but it doesn't work. Is there a way to lo on multipl users in a PHPBB board and post with those two users? Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted June 27, 2006 Share Posted June 27, 2006 u might have to go with logging in and out , but one way would be to do one acc with IE.au3 and possibly one the way u were originally doing it/ make an IE object Link to comment Share on other sites More sharing options...
DaleHohm Posted June 27, 2006 Share Posted June 27, 2006 No matter how many times I attempt this I can only get back a 404 Not Found response from the "POST" section. Why? So this is really really not my thing, but I created an account and tried your code. I get a sid and I get no errors with your code.Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
goflago Posted June 27, 2006 Author Share Posted June 27, 2006 Would my best bet be to try using java due to its virtual machine? 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