Edit report at https://bugs.php.net/bug.php?id=67062&edit=1

 ID:                 67062
 Updated by:         [email protected]
 Reported by:        php-bugs-2014 at ryandesign dot com
 Summary:            Requesting nonexistent files should produce HTTP 404
                     Not Found
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            Website problem
 PHP Version:        Irrelevant
-Assigned To:        
+Assigned To:        bjori
 Block user comment: N
 Private report:     N

 New Comment:

The fix for this bug has been committed. Since the websites are not directly
updated from the repository, the fix might need some time to spread
across the globe to all mirror sites, including PHP.net itself.

Thank you for the report, and for helping us make PHP.net better.




Previous Comments:
------------------------------------------------------------------------
[2014-04-13 06:28:38] php-bugs-2014 at ryandesign dot com

Description:
------------
I am the maintainer of PHP in MacPorts. Last year in bug #64273 I reported that 
requesting a nonexistent file from your download servers erroneously resulted 
in a 200 OK status code instead of the expected 404 Not Found status code, 
making it impossible for MacPorts to tell when a download had failed. We were 
using URLs like:

http://uk.php.net/distributions/php-5.3.222.tar.bz2

I was advised to switch to using URLs like:

http://uk.php.net/get/php-5.3.222.tar.bz2/from/this/mirror

And that is what I did. Afterward, the original style of URL was fixed to 
return a 404 Not Found error when appropriate.

Now, I have discovered that the form of URL I was advised to switch to has the 
same problem. It returns a 200 OK for nonexistent files. Can this please be 
fixed again?

Which of these forms is the currently recommended form to use?

Test script:
---------------
curl -I -L http://uk.php.net/get/php-5.3.222.tar.bz2/from/this/mirror

Expected result:
----------------
HTTP/1.1 404 Not Found
etc.


Actual result:
--------------
HTTP/1.1 200 OK
Date: Sun, 13 Apr 2014 06:24:29 GMT
Server: Apache/2
X-Powered-By: PHP/5.4.21
Content-language: en
Set-Cookie: COUNTRY=USA%2C70.116.59.133; expires=Sun, 20-Apr-2014 06:24:29 GMT; 
path=/
Status: 200 OK
Cache-Control: private
Pragma: no-cache
Vary: Accept-Encoding,User-Agent
Content-Type: text/html; charset=utf-8



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=67062&edit=1

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

Reply via email to