Here is the deal:
1) I send the user and password to the server that the original http://abv.bg 's form will send the data.
2) The server returnes me "HTTP 302 Moved temporarily" and a link like:
http://mailXX.abv.bg/servlet/plogin?s=hewirhwekrjhwekjrhw.passportX" wher re X's are random nubers.
3) When I go to that page I get the same HTTP 302 Moved temprarily message but with differtent mailXX.
4) I go there and this page gives me 4 cookies: example:
Set-Cookie: JSESSIONID=4D6B05D58928843F51D03F6D85ED5F40; Path=/app\r\n
SET-COOKIE: _key=7710db16cea77c8152a557a0ab0469cc; Path=/app; HTTPOnly\r\n
Set-Cookie: uhost=mail33.abv.bg; Domain=.abv.bg; Path=/\r\n
Set-Cookie: usid=4D6B05D58928843F51D03F6D85ED5F40; Domain=.abv.bg; Path=/\r\n
Set-Cookie: JSESSIONID=4D6B05D58928843F51D03F6D85ED5F40; Path=/app\r\n
SET-COOKIE: _key=7710db16cea77c8152a557a0ab0469cc; Path=/app; HTTPOnly\r\n
Set-Cookie: uhost=mail33.abv.bg; Domain=.abv.bg; Path=/\r\n
Set-Cookie: usid=4D6B05D58928843F51D03F6D85ED5F40; Domain=.abv.bg; Path=/\r\n
To copy to clipboard, switch view to plain text mode
and redirects me to "http://mailXX.abv.bg/app/j/home.jsp" whre the XX are from the last page . ( the page that gave me the cookies)
This is what I need. I used WGET to deal with the cookies and everything is ok, but my program reached version 1.00 and I want to remove it because it's stupid for the windows version to come with a hidden wget.exe in the same folder.
Bookmarks