Pretty much I've been trying to do this in java, trying to log into runegear. Sorry if it's easy, but I rarely have to connect to sites in any language and if I do they never need post/cookies/etc, it's more like: Minecraft.net/haspaid.asp?user=Automatic.
Here's my code:
http://pastebin.com/7FQJGiiC
It outputs the normal index.php on runegear, without being logged in.
Here's what it outputs:
But it's missing the login cookies, how do I get them?
Also, read the commented out code, because half of that is what I use when testing it. I just added a few System.out.println(); in there to de-bug it.
Here's my code:
http://pastebin.com/7FQJGiiC
It outputs the normal index.php on runegear, without being logged in.
Here's what it outputs:
Code:
http://runegear.net/member.php
Date - Fri, 26 Aug 2011 07:07:28 GMT
Server - Apache
X-Powered-By - PHP/5.2.17
Set-Cookie - mybb[lastvisit]=1314342448; expires=Sat, 25-Aug-2012 07:07:28 GMT; path=/; domain=.runegear.net
Set-Cookie - mybb[lastactive]=1314342448; expires=Sat, 25-Aug-2012 07:07:28 GMT; path=/; domain=.runegear.net
Set-Cookie - sid=bc7605d09427f6f786573791329f68fd; path=/; domain=.runegear.net; HttpOnly
Connection - close
Transfer-Encoding - chunked
Content-Type - text/html; charset=UTF-8
___
But it's missing the login cookies, how do I get them?
Also, read the commented out code, because half of that is what I use when testing it. I just added a few System.out.println(); in there to de-bug it.