hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gustavo Hexsel <ghex...@sagebrushcorp.com>
Subject RE: POST Form Session Expired
Date Thu, 08 Sep 2005 22:55:56 GMT
  About the POST problem, can you post that part of the wire log?



-----Original Message-----
From: Gustavo Hexsel [mailto:ghexsel@sagebrushcorp.com]
Sent: September 8, 2005 4:53 PM
To: 'HttpClient User Discussion'
Subject: RE: POST Form Session Expired


  Cookies.  Reuse the HttpClient instance throughout the whole operation.

-----Original Message-----
From: Jeremy Whitlock [mailto:jcscoobyrs@gmail.com]
Sent: September 8, 2005 4:48 PM
To: HttpClient-User
Subject: POST Form Session Expired


Hey all,
I am doing a GET on a login form, parsing the form for hidden input and then

creating a POST with NameValuePair objects corresponding to the hidden input

and the two form input fields. I seem to have a minor problem with my 
approach as I always get a "Session Expired" from the server I'm logging 
into. Can someone give me a pseudo flow of how this goes? Here is the 
current code:

http://www.rafb.net/paste/results/mnOMtY87.html

Can someone see what I'm doing wrong? I have tried a minor spin on this 
where instead of creating an HttpClient for each method I have a global one 
but then I get a problem with the POST not being able to redirect. Thanks, 
Jeremy
-- 
He who listens well, speaks well.

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message