From:             bworkman2007 at my dot fit dot edu
Operating system: Windows 7 (x32,x64)
PHP version:      Irrelevant
Package:          Website problem
Bug Type:         Bug
Bug description:400 returned when cookie not sent

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


-- 
Edit bug report at https://bugs.php.net/bug.php?id=63761&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=63761&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=63761&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=63761&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=63761&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=63761&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=63761&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=63761&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=63761&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=63761&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=63761&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=63761&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=63761&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=63761&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63761&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=63761&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=63761&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=63761&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63761&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=63761&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=63761&r=mysqlcfg


-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to