php.net |  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
 [2012-12-13 17:25 UTC] bworkman2007 at my dot fit dot edu
Description:
------------
After poking around with wireshark I found that GET requests made without sending 
the following header:
Cookie: COUNTRY=USA%2Cxxx.xxx.xxx.xxx; 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
Host: php.net
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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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: Thu Mar 28 21:01:27 2024 UTC