Hello all,
I am kinda newbie in programming. I wonder anyone of you have worked on exporting AOL addressbook from a
java program through httpclient. I am facing a problem as after logging successfully when i try to open the addressbook URL , it is redirecting me back to login page asking again for password. It should have given me the html of address book page as a result but it is giving the following response
string.
<html><body><script>var targetURL = 'http://my.screenname.aol.com/_cqr/login/login.psp?seamless=novl
&sitedomain=sns.webmail.aol.com&lang=en&locale=us&authLev=2
&siteState=ver%3a1%252c0%26ld%3am01.webmail.aol.com%26rp%3aab%252f
addresslist.aspx%253fsitedomain%253dsns.webmail.aol.com%2526
authLev%253d2%2526siteState%253dver%25253a1%2525252c0%252526ld%25253
awebmail.aol.com%252526pv%25253aAOL%252526lc%25253aen-us%2526lang%253
den%2526locale%253dus%2526mcAuth%253d
%25252fBcAG0OW31wAAPd7AJ%25252fp5kOW35gImND%25252fNKplmT4AAA%25253d%25253d%26 pv%3aAIM%26lc%3aen-us';
function FindMainWindow() {
for (var w = window; true; w = w.parent) {
if (w.GetMainWindow)
return w.GetMainWindow();
if (w.parent == w)
break;
}
for (w = opener; w != null && !w.closed; w = w.opener)
if (w.GetMainWindow)
return w.GetMainWindow();
return null;
}
var mw = FindMainWindow();
if (mw && !mw.closed)
mw.top.location = targetURL;
else {
var w = window.open(targetURL, '', '', true);
if ((w == null) && (window == top)) window.location = targetURL;
}
</script></body></html>
Can anyone here help me out. I desperately need a solution.
Regards,
Priyanshu
[ Edited by Ulf Dittmer: broke down the URL into several lines to make it readable ]
[ December 09, 2005: Message edited by: Ulf Dittmer ]