This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes HttpURLConnection or URLConnection to login in to sites Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "HttpURLConnection or URLConnection to login in to sites" Watch "HttpURLConnection or URLConnection to login in to sites" New topic
Author

HttpURLConnection or URLConnection to login in to sites

R Johnson
Greenhorn

Joined: Jan 05, 2010
Posts: 28

Yahoo does not require post to login to their site this link in a browser will log in https://login.yahoo.com/config/login?login=user&passwd=password. So with the following code and many variations of this code using different type of cookie catchers I've been trying to login:



I've used this method maps and I've used my own CookieManager I can get neither one to work. if someone will just show me an example of how to login to something and stay logged in that would be great. Even if it's a different site that's what tutorials do they show you code that works and then you can use it for your own means it's not about doing the work for me.
 
wood burning stoves
 
subject: HttpURLConnection or URLConnection to login in to sites
 
Similar Threads
How to recive / return cookies to server?
Java Application using webpages for profile changes
Getting Hotmail Inbox
HTTP and Cookies
Download only a bit of a file and stop.