• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

"Email Login" App: POST Forms, & Client Cookies for (Hotmail/Yahoo mail etc)

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello
I've been working on the above to automate "Email Login" for both a Java
application and Applet.
If anyone is working on this too and interested in collaborating or has
final code they are willing to share this would be most helpful.
Just to explain the background. POST form info is sent to a mail server
such as Yahoo or Hotmail and cookies are collected which are later sent
back to the server to download individual mail messages.
Some of the tricky issues I have encountered are not being able to
communicate via URL using HTTPS (SSL) in JBuilder 3. This had meant I am
unable to use JB3 to login into Hotmail. I am about to try this on VC
and JB4. The other problem is not being able to handle "redirects" to
allow collection of all the cookies that will be needed to be passed
back to the server.
On the Applet side Netscape appears to be taking care of the cookies
issue. However I then must Sign the applet to enable it to save
individual email messages to local hard disk. I have been unsuccessful
so far is completing this step. I have been hampered by the fact that
some code I was using involved swing and other areas that aren't
supported in Netscape 4.6 without a plug-in. Additionally JB3 has no
support for debugging Applets, Unbelievable!
I have searched many forums and this is one of the single most
frequently asked questions. But there is no definitive code out there.
Anyway here I am waffling on. If anyone is interested in collaborating
please let me know you can reply directly to the email address below.
thanks
john_riche@hotmail.com

 
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can't help much with Applet signing. However to use a URL to connect to https, you need to download the JSSE package from Sun.
The code is then :
<pre>
// set the default security protocol (shipped with JSSE1.0.1)
System.setProperty ("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
// add the default security provider (again, in JSSE1.0.1)
java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider() );
URL send = new URL("https://www.verisign.com");
</pre>
Hope this helps
 
Arthur, where are your pants? Check under this tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic