Cookies and redirect 302 problem.
"Julio S. G." <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm trying to use httpunit to login send some form data but it's not working. When I submit the form it sends all the correct data but the server responds with a 302 http code (moved). This is correct and using the browser all the things work fine. But with httpunit the redirect is not sending the first cookies. Then the final page does not works fine because it's supposed that some cookie data were recorded. It seems to me that the error occurs when the method updateWindows() at WebWindow class is executed and the shouldFollowRedirect( response ) is true. And the problem appears to be when the _headers variable at HttpWebResponse is recreated with an empty hashtable. Do anybody had these problem? Any suggestion to solve it? Thank you, Julio ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV