20 December 2007 - java_dev (original) (raw)

01:15 pm - bowserbabe - So, I've been programming in Java for about 2 days now... >.> I guess it's sort of like having a paragraph of text that you're translating into another language. I tend to just look up the things I need to know. >.> I'm used to PHP where there are code examples everywhere. That seems to be how I learn best. So Java's giving me a bit more trouble.The program I'm writing needs to be able to access pages on a members-only forum. I can get it to login to the forum and send back a cookie, but then I'm stuck. Either it's not sending the cookie to the site so I can view the pages, or it's the wrong cookie, or some other problem. I'm not sure. I even tried reading the cookie IE saved off of my own computer and sending that back.I don't know enough about Java to know if the problem is a Java problem or a cookie problem or what. I have a friend helping me who knows more about Java than I but he doesn't seem to know why it won't work either.Here's my code:http://www.bowserbabe.com/logmein.txtIt sends back the login page when I run it.