Re: PUT method in PHP when???
| From: | Manuel Lemos | Date: | Mon, 22 Feb 1999 14:48:23 +0000 |
| Subject: | Re: PUT method in PHP when??? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-4256@lists.php.net to get a copy of this message | ||
Hello Jim,
On 21-Feb-99 20:58:35, you wrote:
>> When PUT method will be supported by PHP?
>It is now, if you apply Manual Lemos's patch. It will be supported
>out-of-the-box when someone with CVS access decides to commit it.
Right, I tried in the latest 3.0.7 release and it still applies ok.
>> Lots of web publishers use PUT method (like composer) to upload files to an
>> webserver. If PUT method was supported i could get all headers from PUT
>> like content-type, that make easy for me to know what files someone is
>> uploading to my webserver. Without this i have to guess what content type
>> is the file by looking through extension (if has it).
>This could easily be handled by logging the correct information from
>Apache, as well.
How? With the PUT method the HTTP client sends the Content-Type of the
file being uploaded in the request headers. Unless you run PHP as module
with PUT method support, you don't have access to the whole list of
request headers.
>> Didn't Manuel Lemos something to support this method in patch to add to PHP
>> in October? Why this patch never was added?
>Because nobody with CVS access apparently feels strongly about it to
How about letting me commit the changes of the patch?
It still applies and works fine with PHP 3.0.7 pre as I have just tried.
If you don't have time to try it, I may do it once and for all so everybody
may benefit from it without having to be a wizard on applying patches, and
while this patch applies fine.
In the way I may write some documentation if you would wish for me to do
it.
>test it and apply it. It also happens to muck about in a piece of
>code that scares many small children, and addresses something that
>isn't an issue to a great many people.
Nah. There's no big deal about it. Basically it just adds one more case
to the if/swicth statements that already handle the POST method, except
that PUT is much simpler as it as it does not require any decoding of the
uploaded data.
Regards,
Manuel Lemos
E-mail: mlemos@acm.org
URL: http://www.e-na.net/the_author.html
PGP key: finger://mlemos@zeus.ci.ua.pt
--
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net