This week's book giveaway is in the Python forum.
We're giving away four copies of Python Continuous Integration and Delivery and have Moritz Lenz on-line!
See this thread for details.
Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

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

 
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
 
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!
 
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!