http://pear.php.net/get/nonexistentfile.tgz returns HTTP/1.1 200 OK

From: Date: Wed, 27 Aug 2003 01:16:27 +0000
Subject: http://pear.php.net/get/nonexistentfile.tgz returns HTTP/1.1 200 OK
Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-475@lists.php.net to get a copy of this message
Hi Martin, I am trying to write a new revert command for PEAR that will automatically download a previous version in some cases, and one of the ways it determine previous version is to allow the user to specify a version number on the command line, so that this: pear revert PhpDocumentor 1.1.9 would attempt to install phpDocumentor from http://pear.php.net/get/PhpDocumentor-1.1.9.tgz Unfortunately, my scheme doesn't work because /get returns an OK code no matter what. My question is should this be changed? I can use two other tests to determine success, but it also breaks pear install. The error only occurs if the package name exists, but the version number does not (PhpDocumentor exists, version 1.1.9 does not). I'm attaching headers grabbed from netdemon below Regards, Greg --- 8/26/2003 9:10:42 PM Eastern Standard Time --- reading URL http://pear.php.net/get/PhpDocumentor-1.1.9.tgz --- contacting host pear.php.net [216.92.131.66] on port 80 --- Sending HTTP Request: GET /get/PhpDocumentor-1.1.9.tgz HTTP/1.1 Connection: close User-Agent: Mozilla/4.03 [en] (Win95; I ;Nav) Host: pear.php.net Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* Accept-Language: en Accept-Charset: iso-8859-1,*,utf-8 --- server response: HTTP/1.1 200 OK Date: Wed, 27 Aug 2003 01:10:15 GMT Server: Apache/1.3.28 (Unix) PHP/4.3.3 X-Powered-By: PHP/4.3.3 Set-Cookie: PHPSESSID=2110a3261fd8288493e53fb4c933816e; path=/ Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=iso-8859-1 0 --- connection closed

« previous php.pear.webmaster (#475) next »