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
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
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,
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
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
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;
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
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.