commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Perttu Roger" <>
Subject [HttpClient] Cookie and header problems
Date Mon, 19 Apr 2004 15:22:00 GMT

I'm having trouble with cookies. My server doesn't seem to understand multiple
cookie-headers sent by HttpClient.

The server sends me this (edited):
HTTP/1.0 200 OK
Server: TeamWARE Web Service/5.3L13
Content-Type: text/html
Date: Mon, 19 Apr 2004 14:15:23 GMT
Pragma: no-cache
Cache-Control: no-cache
Expires: Mon, 19 Apr 2004 14:15:23 GMT
Content-Length: 482
Connection: close
Set-Cookie: TeamWARE=4e44;; path=/
Set-Cookie: TWUN=5065;; path=/

And HttpClient returns this (edited)
User-Agent: Jakarta Commons-HttpClient/2.0final
Cookie: TeamWARE=4e44
Cookie: TWUN=5065
Proxy-Connection: Keep-Alive


The problem is that the server doesn't seem to understad when multiple
Cookie-headers are used. Mozilla sends it like this:
  Cookie: TWUN=5065; TeamWARE=4e44
which works with my server.

Is there a way to make HttpClient use a one line cookie-header like Mozilla?
What does the HTTP-spec. and other "standards" say about this? I've done some
digging but I didn't come up with much.

Roger P

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message