PUT Method Requests

The PUT method is an HTTP request for a file to be placed on the remote server. It's like a file upload that doesn't come from a form and tells you where to place the file in your document tree. You might guess that this is a very dangerous thing to allow for anonymous users. It's especially dangerous when users could be uploading PHP scripts.

Not all browsers support PUT requests, and neither do all servers. Netscape Composer and the W3C's Amaya browsers reportedly allow PUT requests. Apache for UNIX will accept them if configured to do so. To configure Apache to allow PUT requests, you use the Script directive inside a configuration file. See the Apache site for more information <http://www.apache. org/docs/mod/mod_actions.html#script ...

Get Core PHP Programming: Using PHP to Build Dynamic Web Sites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.