curl-library
Cookie not saved when "HTTP/1.1 303 See Other"
Date: Fri, 13 Feb 2009 12:46:58 +0100
Hello everyone
The following is the response header:
HTTP/1.1 303 See Other
Date: Fri, 13 Feb 2009 11:27:05 GMT
Server: Apache
X-Content-Type-Options: nosniff
Set-Cookie: LOGIN_INFO=4334dd13fe0f318dd79f8f15bb2ec75be3QgAAAAbV91c2VyX2lkX0FORF9zZXNzaW9uX251bWJlcl9tZDVzIAAAADY5OGU0YjU1YjY2NTYxMzczZDhlMDA3MjhjZjkyZTk0dAkAAABtX3VzZXJfaWRsAgAAAPcFlAB0FQAAAG1fYXV0aGVudGljYXRpb25fdHlwZXQIAAAAUEFTU1dPUkQw; path=/; domain=.youtube.com; expires=Mon, 11-Feb-2019 11:27:05 GMT; httponly
Expires: Tue, 27 Apr 1971 19:44:06 EST
Cache-Control: no-cache
Location: http://www.youtube.com/watch?v=qXmWAGLfx9U
Transfer-Encoding: chunked
Content-Type: text/html; charset=utf-8
Storing the cookies works without any problems for all other requests but in this case with a 303 code it doesn't store the cookies in the file.
Does somebody have an idea why this happens? I'm using the latest version of libcurl (7.19.3) as a module in PHP (5.2.8).
Is there a special flag which I have to set that it works or is it a bug?
Thank you
Regards
Pascal
-- Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569aReceived on 2009-02-13