#34820 [Opn->Fbk]: 'HTTP_ACCEPT_ENCODING' not set in $_SERVER
| From: | tony2001@php.net | Date: | Mon, 10 Oct 2005 20:47:51 +0000 |
| Subject: | #34820 [Opn->Fbk]: 'HTTP_ACCEPT_ENCODING' not set in $_SERVER | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-86372@lists.php.net to get a copy of this message | ||
ID: 34820
Updated by: tony2001@php.net
Reported By: AlReece45 at yahoo dot com
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Windows XP Home SP1
PHP Version: 4.4.0
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
>What I meant is that is was set before.
Once again: before what happened?
Yes, I got that "before it stopped working", but I guess you did
something as if it just magically disappeared - that's not PHP
problem.
Btw, it works just fine here.
>It isn't a browser problem b/c I checked by sending a
>request manually using telnet.
How exactly did you check it?
Previous Comments:
------------------------------------------------------------------------
[2005-10-10 22:38:24] AlReece45 at yahoo dot com
Sorry if this posts twice...
What I meant is that is was set before.
And phpinfo() does not it either. I checked both there and using the
code: <?php var_export($_SERVER); ?> to check to see if I was just
using the wrong index or just a documentation bug. Nothing in the
$_SERVER variable, or $GLOBALS (checked it too) has anything with gzip
in it.
It isn't a browser problem b/c I checked by sending a request manually
using telnet.
------------------------------------------------------------------------
[2005-10-10 22:30:38] tony2001@php.net
>While it was working before
it was working before *what*?
And what your phpinfo() tells about it?
Or there is no Accept-Encoding too?
------------------------------------------------------------------------
[2005-10-10 22:22:16] AlReece45 at yahoo dot com
Description:
------------
While it was working before, the $_SERVER['HTTP_ACCEPT_ENCODING'] is
not longer being set.
I'm using Apache 2 with the PHP Module.
Note this is not a problem of "Content-Encoding" being sent
Reproduce code:
---------------
<?php
var_export($_SERVER['HTTP_ACCEPT_ENCODING']);
?>
Expected result:
----------------
'gzip, deflate'
Actual result:
--------------
NULL
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34820&edit=1