RE: Grabbing a header from the server's response

2003-08-19 Thread ross_r
I do it like this, for example, to get the new URL from the location header: Header header = httpget.getResponseHeader(Location); String newuri = header.getValue(); Ross - get lined up at http://www.careerfish.com -Original Message- From: Mark Castillo

Out of luck... was RE: Posting Issues was RE: Cookie Issues

2003-07-01 Thread ross_r
Welp, I have tried everything I can think of cookie types, http 1.0 versus 1.1, even matching the headers line for line. It is even the exact same content-length as the browser trace. I still get the 200 OK instead of the 302 Found with the new location I need. I'm at a loss. Here's my

RE: Cookie Issues

2003-06-30 Thread ross_r
Well it has changed my problem. Here what happens now, I still do not get the post results that I want. Here's the proxy trace with a browser: POST /JobSeeker/Jobs/JobQuery.asp?ch=al HTTP/1.0 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel,

Cookie Issues

2003-06-27 Thread ross_r
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

RE: Cookie Issues

2003-06-27 Thread ross_r
So a post.setRequestHeader should do the trick? I'll give it a shot. Ross -Original Message- From: Michael Becke [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 1:51 PM To: Commons HttpClient Project Subject: Re: Cookie Issues The cookies appear to be working correctly. I

RE: Cookie Issues

2003-06-27 Thread ross_r
Nope didn't work new relevant piece of trace: Not in my proxy trace there seems to be one more cookie than I see in the trace: Cookie: BID=X1DE45D226BE57EF9DFCF03167215B4A8901B5D817388E18FAC3B90790F0B43DA2; bJobSeeker=True; RMID=432198953edf80d0;

RE: Cookie Issues

2003-06-27 Thread ross_r
I deleted my cookies from the browser and RMID was never set again... I don't know... However I noticed in my proxy traces the browser put all the cookies in one line instead of separate lines for each cookie. Could that cause a problem? Ross -Original Message- From: Michael Becke

RE: Cookie Issues

2003-06-27 Thread ross_r
I also didn't set a cookiePolicy and let the default go, still a cookie on a separate line. I also tried to concatenate all the cookies into a string and set the cookie header line like so: post.setRequestHeader(Cookie,catCookies); But that doesn't seem to work either. It is never sent.