Ask a Question related to PHP Bugs, Design and Development.
-
tony2001@php.net #1
#37717 [Opn->Fbk]: gzopen fails with http, bad request
ID: 37717
Updated by: [email]tony2001@php.net[/email]
Reported By: chrissavery at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Zlib Related
Operating System: WinXP
PHP Version: 5.1.4
New Comment:
Please try using this CVS snapshot:
[url]http://snaps.php.net/php5.2-latest.tar.gz[/url]
For Windows:
[url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]
Works just fine here:
C:\php -r
"var_dump(gzopen('http://tony2001.phpclub.net/3.php.gz','r'));"
resource(6) of type (stream)
Previous Comments:
------------------------------------------------------------------------
[2006-06-08 08:50:47] chrissavery at gmail dot com
Have tested with php4 directory renamed to prevent mistaken use of some
resource. Also re-extracted all files from root of Win325.2 archive, and
some needed ext dlls as well. All should be correct versions. Problem
still persists on various tested urls. Please check your server logs as
when I tried that one it would have left an ET request when it should
have been GET.
This is on my test Win32 server but my real server runs on Linux. I'm
hoping that when I do upgrade tests on that it's working ok on Linux.
Chris :)
------------------------------------------------------------------------
[2006-06-06 21:37:45] [email]tony2001@php.net[/email]
Please make sure you've updated ALL the .dlls and turned off all
firewalls etc, which might affect it.
------------------------------------------------------------------------
[2006-06-06 21:30:41] chrissavery at gmail dot com
have just tried same php cmd line call to your server. result was
same:
C:\Documents and Settings\Chris>php -r
"var_dump(gzopen('http://tony2001.phpclub
..net/3.php.gz','r'));"
Warning: gzopen([url]http://tony2001.phpclub.net/3.php.gz):[/url] failed to open
stream: HT
TP request failed! HTTP/1.0 501 Method Not Implemented
in Command line code on line 1
bool(false)
------------------------------------------------------------------------
[2006-06-06 21:20:09] chrissavery at gmail dot com
Have just tried php5.2-win32 as requested. get same results.
error msg and log server entry shown below. server is Apache 2.0.52.
Warning: gzopen([url]http://www.localseller.com/mods/features-0.gz[/url])
[function.gzopen]: failed to open stream: HTTP request failed! HTTP/1.1
501 Method Not Implemented in C:\Documents and Settings\Chris\My
Documents\WebSites\Optimal\am\mod.php on line 16
[Wed Jun 07 04:12:55 2006] [error] [client 127.0.0.1] Invalid method in
request ET /mods/features-0.gz HTTP/1.0
Simply changing function call from gzopen to fopen succeeds. I
reinstalled apache as well because I thought maybe something had
corrupted it.
------------------------------------------------------------------------
[2006-06-06 19:57:14] [email]tony2001@php.net[/email]
Please try using this CVS snapshot:
[url]http://snaps.php.net/php5.2-latest.tar.gz[/url]
For Windows:
[url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]
Can't reproduce:
# php -r 'var_dump(gzopen("http://tony2001.phpclub.net/3.php.gz",
"r"));'
resource(6) of type (stream)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
[url]http://bugs.php.net/37717[/url]
--
Edit this bug report at [url]http://bugs.php.net/?id=37717&edit=1[/url]
tony2001@php.net Guest
-
Send Basic HTTP authentication credential in the first HTTP request
Hello, How can I make the web service proxy class send basic authentication information in the HTTP header of the first request? My... -
HTTP Request
Hey peoples, Just a quick one as i dont know where to start, i have a friends website that returns results and only results on request... so if i... -
POST fails in HTTP::Request
Dear Gurus, Thanks everyone for your help so far, I really learnt a lot from your advice. I have stumbled across the following problem recently,... -
HTTP 400 BAD REQUEST
Hi, I am trying to upload a file to the Server using the System.net.Webclient and the uploadfile method. The Upload consistenly happens for file... -
HTTP::Request failed on HTTP/1.1 and Connection: Keep-Alive
Hi Abigail, I know that the error comes from the Java program, the nullpointer error. But what it confused me is: if I'm using an Internet Explorer...



Reply With Quote

