This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting Hotmail Inbox

 
Yoo-Jin Lee
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm trying to get my INBOX from Hotmail's http server but am having much difficulty. Basically, I'm using the following:
String s = "http://lc2.law13.hotmail.passport.com/cgi-bin/dologin?passwd=XXXXXXX&login=XXXXX&svc=mail&RemoteDAPost=https://login.msnia.passport.com/ppsecure/post.asp&enter=Sign+in";
URL url = new URL(s);
URLConnection connection = url.openConnection();
BufferedReader in = new BufferedReader(
new InputStreamReader(
connection.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null) {
System.out.println(inputLine);
}
in.close();
Then I replace s with :"http://lw2fd.hotmail.msn.com/cgi-bin/HoTMaiL?curmbox=F000000001&submit=Continue+using+Hotmail" and do the whole thing again to get around Hotmail's first reply saying that I'm not using IE5 or Netscape equivalent.

The only problem with it is that the second reply produces a message saying that there is no cookies support. Could anyone suggest anyway to get around the no cookie support problem?
Or is there a better alternative to getting hotmail contents? I want to provide the inbox to people accessing my website.
Thanks in advance.
Yoo-Jin.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!