Re: Not able to login
"Maruthi R Janardhan" <[email protected]>
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Looks like you are not having any post parameters with the username and password. You should have put up your entire posting code for clarity. Cookies are anyway enabled by default. Make sure you are using the same webconversation right through _____ From: [email protected] [mailto:[email protected]] On Behalf Of Prabudas varadarajan Sent: Wednesday, January 10, 2007 11:07 AM To: [email protected] Subject: [Httpunit-develop] Not able to login HI, This is the first time using httpuit. I am trying to login to a page, which is done throgh Java Script. I am acceppting cookies by using the following code : ClientProperties cp = ClientProperties.getDefaultProperties (); cp.setAcceptCookies(true); cp.setAcceptGzip(true); Also removed js.jar to avoid javascript issues. Still i am not able to login and getting redirected to login again page. Can any one kinldy help on this. Thanks, Prabu This is the header output of the conversation : Connecting to 164.99.162.150 Sending:: POST http://164.99.162.150/admin/Login.aspx Sending:: User-Agent: httpunit/1.5 Sending:: Accept-Encoding: gzip Sending:: Content-Type: application/x-www-form-urlencoded Received from http://164.99.162.150/admin/Login.aspx Header:: HTTP/1.1 200 OK Header:: Date: Wed, 10 Jan 2007 10:49:27 GMT Header:: Server: Apache/2.2.0 (Linux/SUSE) Header:: Content-Length: 3952 Header:: Cache-Control: private Header:: Set-Cookie: ASPSESSION=DDA5E08D230BD2B1BBB1DDD1; path=/admin Header:: Set-Cookie: test=True; path=/; expires=Fri, 09 Feb 2007 10:49:27 GMT Header:: Keep-Alive: timeout=15, max=100 Header:: Connection: Keep-Alive Header:: Content-Type: text/html; charset=utf-8 1 Connecting to 164.99.162.150 Sending:: POST Login.aspx Sending:: User-Agent: httpunit/1.5 Sending:: Cookie: ASPSESSION=DDA5E08D230BD2B1BBB1DDD1; test=True Sending:: Accept-Encoding: gzip Sending:: Referer: http://164.99.162.150/admin/Login.aspx Sending:: Content-Type: application/x-www-form-urlencoded Received from http://164.99.162.150/admin/Login.aspx Header:: HTTP/1.1 302 Found Header:: Date: Wed, 10 Jan 2007 10:49:28 GMT Header:: Server: Apache/2.2.0 (Linux/SUSE) Header:: Location: /admin/Login.aspx?MessageType=Error%3a&MessageText=Your+session+has+been+clo sed.+Please+log+in. Header:: Content-Length: 210 Header:: Cache-Control: private Header:: Keep-Alive: timeout=15, max=99 Header:: Connection: Keep-Alive Header:: Content-Type: text/html; charset=utf-8 Connecting to 164.99.162.150 Sending:: GET /admin/Login.aspx?MessageType=Error%3a&MessageText=Your+session+has+been+clo sed.+Please+log+in. Sending:: User-Agent: httpunit/1.5 Sending:: Cookie: ASPSESSION=DDA5E08D230BD2B1BBB1DDD1; test=True Sending:: Accept-Encoding: gzip Sending:: Referer: http://164.99.162.150/admin/Login.aspx Received from http://164.99.162.150/admin/Login.aspx?MessageType=Error%3a <http://164.99.162.150/admin/Login.aspx?MessageType=Error%3a&MessageText=You r+session+has+been+closed.+Please+log+in> &MessageText=Your+session+has+been+closed.+Please+log+in. Header:: HTTP/1.1 200 OK Header:: Date: Wed, 10 Jan 2007 10:49:28 GMT Header:: Server: Apache/2.2.0 (Linux/SUSE) Header:: Content-Length: 4156 Header:: Cache-Control: private Header:: Set-Cookie: ASPSESSION=4E2B89C313E9BE9B59013A78; path=/admin Header:: Set-Cookie: test=True; path=/; expires=Fri, 09 Feb 2007 10:49:28 GMT Header:: Keep-Alive: timeout=15, max=98 Header:: Connection: Keep-Alive Header:: Content-Type: text/html; charset=utf-8 ------------------------------------------------------------------------- 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 _______________________________________________ Httpunit-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/httpunit-develop