cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: HTTP PUT Question

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 20 Feb 2002 15:09:13 +0100 (MET)

On Wed, 20 Feb 2002, Fred Schuff wrote:

(CC'ed to the curl mailing list for info)

> Is there more information about the statement in your documentation:
>
> HTTP
>
> Upload all data on stdin to a specified http site:
>
> curl -T - http://www.upload.com/myfile
>
> ==> Note that the http server must've been configured to accept PUT
> before this can be done successfully.
>
> For other ways to do http data upload, see the POST section
> below.
>
> the note about configuring the http server to accept PUT requests.

I really don't know what more to say.

The note is there simply to tell people that they cannot just assume that
they can pick either one of PUT or POST at their choice. Most servers are
setup to accept POST which is used for all HTML forms etc.

To receive a HTTP PUT, you must somehow tell your server that. This is
actually beyond curl's scope, and to be honest I've never done this myself
and I have no immediate plans of doing so either, so I don't even know how to
do this on my own server(s). Sorry.

I think you should try your server's documentation for details on this.

Or maybe some friendly soul on the mailing list possesses some info they feel
like sharing.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-02-20