aspose file tools
The moose likes Beginning Java and the fly likes Using Java to Login to an HTTPS Website (Yahoo) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Using Java to Login to an HTTPS Website (Yahoo)" Watch "Using Java to Login to an HTTPS Website (Yahoo)" New topic
Author

Using Java to Login to an HTTPS Website (Yahoo)

Parth Sagdeo
Ranch Hand

Joined: Mar 18, 2004
Posts: 40
I'm interested in making a program to log into yahoo.com and check my various stock portfolios. I already know how to access static web pages in Java, but this poses a unique challenge because it requires cookies and it uses SSH authentication (the https protocol). Does anyone have any tips on how I can get this to work, or know any helpful resources? I believe YPOPs (YPOPs does something similar (log in to Yahoo programatically), but their forums are pretty much dead. My biggest question right now is how I might accept cookies in Java so I can move around yahoo in a logged in state. Any ideas?

Thanks,
Parth
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 973
i heard something about watij / httpunit...but these are basically used for functioanl web testing
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12952
    
    3

Are you using the networking classes in the standard Java API? They work but are not so sophisticated and doing things like HTTPS and cookies can be difficult or isn't even possible with the standard API classes.

Have a look at Jakarta Commons HttpClient, which is a library that makes working with HTTP and HTTPS a lot easier. This library can also handle cookies for you.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35439
    
    9
Please do not post the same question to multiple forums. Now you have answers here and here, and peoples time and effort to help you is being duplicated and thus wasted: CarefullyChooseOneForum


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Java to Login to an HTTPS Website (Yahoo)
 
Similar Threads
Java Application using webpages for profile changes
Using Java to Login to an HTTPS Website
Yahoo/MSN Messenger APIs in JAVA
Test Cookies enable/disabled
Cookies , http , https