Re: HTTP_download -If-Modified-Since (->304) does not work

From: Date: Fri, 19 Dec 2003 20:41:57 +0000
Subject: Re: HTTP_download -If-Modified-Since (->304) does not work
References: 1 2 3 4 5 6 7  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24557@lists.php.net to get a copy of this message
Hi Andreas Korthaus, you wrote: > This error is raised every time if someone requests a file which has > not been modified since last visit. [...] > So if a 304 is sent, everything is OK, something like that will be > logged in httpd access_log, not error_log. Agreed. > after HTTP_download::send(), I should use "exit;" by myself, if I > don't want any processing after sending the file/statuscode, right? If you would even need to... >> o If HTTP_Download is going to send _nothing_ to the client, it >> will raise an error. > > It will _always_ raise an error if not Statuscode 200, but 304 is > nearly the same as 200 in result. 200 and 206 - now 304, too :-) I've talked to Wolfram and sendStatusCode() will stay as it is, but the return behavior will be fixed, which won't affect us, so HTTP_Download-0.5 has already been rolled. Thanks for your patience, -- Michael - < mike(@)php.net >

Attachment: [application/pgp-signature]
« previous php.pear.dev (#24557) next »