|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63761 400 returned when cookie not sent
Submitted: 2012-12-13 17:25 UTC Modified: 2012-12-27 15:29 UTC
From: bworkman2007 at my dot fit dot edu Assigned:
Status: Closed Package: Website problem
PHP Version: Irrelevant OS: Windows 7 (x32,x64)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: bworkman2007 at my dot fit dot edu
New email:
PHP Version: OS:


 [2012-12-13 17:25 UTC] bworkman2007 at my dot fit dot edu
After poking around with wireshark I found that GET requests made without sending 
the following header:
Cookie:; LAST_LANG=en
return a 400 from the server.

Test script:
GET / HTTP/1.1
User-Agent: Opera/9.80 (Windows NT 6.1; WOW64) Presto/2.12.388 Version/12.11
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: en-US,en;q=0.9
Accept-Encoding: gzip, deflate
Cache-Control: no-cache
Connection: Keep-Alive

Expected result:
HTTP/1.1 200 OK
Server: myracloud
Date: Thu, 13 Dec 2012 17:24:48 GMT
Content-Type: text/html;charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Content-language: en
Last-Modified: Thu, 13 Dec 2012 17:20:18 GMT
Content-Encoding: gzip
Vary: Accept-Encoding
Expires: Thu, 13 Dec 2012 18:24:48 GMT
Cache-Control: max-age=3600

Actual result:
HTTP/1.1 400 Bad Request
Server: myracloud
Date: Thu, 13 Dec 2012 17:23:24 GMT
Content-Type: text/html; charset=iso-8859-1
Transfer-Encoding: chunked
Connection: keep-alive
Expires: Mon, 10 Dec 2012 23:01:21 GMT
Cache-Control: max-age=0


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-27 15:29 UTC] bworkman2007 at my dot fit dot edu
Problem currently does not exist
 [2012-12-27 15:29 UTC] bworkman2007 at my dot fit dot edu
-Status: Open +Status: Closed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 00:01:28 2024 UTC