• Post Reply Bookmark Topic Watch Topic
  • New Topic

connecting a url that requires credential and mentain session ID  RSS feed

 
aminur rashid
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.
I have connected a url by Java Programming.(Say for example mail.yahoo.com).
Now i want to go to my inbox page by java programming.I want to know that

1).How to pass credentials (like password ,userName ,Cookies) to retrieve the page containing my inbox
2). How i can reach to the page containing myInbox
Thanks
Aminur
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is an excellant example in the examples for Jason Hunter's book "Java Servlet Programming (2nd Edition)" The example is for an Applet to communicate back to a servlet requiring Basic Authentication but can work with your servlet or an application. It uses a class he created called "HttpMessage" and "Base64Encode"
The examples are at http://examples.oreilly.com/jservlet2/ If you don't have a copy of his book, I recommend it! Ajith gave it 10 Horseshoes!
 
Van Glass
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The iNet Factory component suite has a Http component that allows you to use cookies, http auth etc. Download at http://www.jscape.com
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!