tags:

views:

261

answers:

2

Hi all,

Does HTTP PUT have advantages over HTTP POST, particularly for File Uploads? Data transfer should be highly secure.. Your ideas / guidance on this will be of great help.

regards, Kingsley Reuben

+2  A: 

PUT is designed for file uploads moreso than POST which requires doing a multipart upload, but then it comes down to what your server can do as to which is more convenient for you to implement.

Whichever HTTP method you use, you'll be transmitting data in the clear unless you secure the connection using SSL.

Christopher
A: 

Does HTTP PUT have advantages over HTTP POST, particularly for File Uploads?

You can use standard tools for sending the data (i.e. ones that don't have to be aware of your custom scheme for describing where the file should be uploaded to or how to represent that file). For example, OpenOffice.org includes WebDAV support.

Data transfer should be highly secure

The method you use has nothing to do with that. For security use SSL in combination with some form of authentication and authorization.

David Dorward