Ross,

Cookies are automatically stored in an HttpClient's instance of HttpState. If you use the same instance of HttpClient to execute the GET on the initial page and the POST all should be automatically handled.

Please post a wire log showing the GET and POST if the cookie handling continues to not work (see http://jakarta.apache.org/commons/httpclient/logging.html).

Mike

[EMAIL PROTECTED] wrote:
I guessing that I am not doing something right. I have a site which has a
session id that it sends as a cookie. I get the cookie when I get the
initial page. I then have to send a post and send that cookie back.
However I get back a error message from the server which says no session id.
Now I did a trace and it just send back "HTTP/1.1 499 Data Error
NoSessionId" Not very helpful.




Is there something that I need to do other than
"client.getState().getCookies" when I get the first page to make sure that
the cookies are sent back with the post data?



Thanks,



Ross Rankin








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to