QUOTE(liamzdenek @ 19 Oct, 2009 - 07:26 PM)

I read that watermark on the submit text box...
I have no code to show, I just know what I need to do, but -zero- clue how to do it.
Basically:
I need a script that submits the form at
http://www.minecraft.net/login.jsp with parameters username='foo' and password='bar'
After submitting that form, the script uses the cookie received from submitting that form to load and save the html from
http://www.minecraft.net/play.jsp in a text file
--
To help you with an understanding of why this is needed:
the /play.jsp file has two parameters (for the game client) on the page that are otherwise not there if you do not log in
One is your username
The other is your 'verify' code (to proove your not spoofing by sending a fake nick)
I am trying to create a bot that connects to a server, and it needs to get the 'verify' param
Thanks in advance,
Liam
Ok so i just started with Python but i have written this with a bunch of other sites hopefully it helps you.
CODE
import urllib
import urllib2
import cookielib
cookiejar = cookielib.CookieJar()
urlOpener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookiejar))
urllib2.install_opener(urlOpener)
values = {'loginID': 'foo', 'password': 'bar'}
data = urllib.urlencode(values)
request = urllib2.Request('http://www.minecraft.net/login.jsp',data)
url = urlOpener.open(request)
print url.read()
don't know if it is precisely correct but maybe u can make something out of it and email me ur version if it works please
Regards
This post has been edited by 88EighT88: 17 Nov, 2009 - 12:34 PM