Hello,
Hi, I am trying to login to GalleryRemote from a python program.
And I experienced something strange: the HTTP response header contains three different entries for the GALLERYSID cookie. The first one is blank, the other two are the correct value. See below for the header value.
Is this normal?
Jean-Michel
Date: Fri, 14 Nov 2008 23:11:15 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-5 with Suhosin-Patch
X-Powered-By: PHP/5.2.6-5
Set-Cookie: GALLERYSID=; expires=Thu, 15 Nov 2007 23:11:15 GMT; path=/gallery2/; HttpOnly=1
Set-Cookie: GALLERYSID=2edda03190a66e68513896004d56baff; expires=Fri, 05 Dec 2008 23:11:15 GMT; path=/gallery2/; HttpOnly=1
Set-Cookie: GALLERYSID=2edda03190a66e68513896004d56baff; expires=Fri, 05 Dec 2008 23:11:15 GMT; path=/gallery2/; HttpOnly=1
Vary: Accept-Encoding
Content-Length: 183
Connection: close
Content-Type: text/plain; charset=UTF-8
Posts: 4
For future reference: I had the same problem and asked in #gallery, I was answered (by Bharat) that
- the first cookie is to expire anything that was before
- the second is to establish the origin
- the third... not sure what's the meaning, but it brings certainly no damage
And indeed, multiple "Set-Cookie:" fields are indeed allowed in http response headers, and the problem is tackled from the python point of view here:
http://bugs.python.org/issue1660009
bye
Pietro