Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
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.
 
 
subject: HttpURLConnection or URLConnection to login in to sites
 
Similar Threads
Download only a bit of a file and stop.
HTTP and Cookies
How to recive / return cookies to server?
Java Application using webpages for profile changes
Getting Hotmail Inbox