curl-users
Re: HTTP PUT Question
Date: Wed, 20 Feb 2002 15:36:03 +0100
On Wed, Feb 20, 2002 at 03:09:13PM +0100, Daniel Stenberg wrote:
> 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.
in case you're using the apache server (I haven't seen the original
question, so I'm not sure), there's the module mod_put to handle the
HTTP methods PUT and DELETE. More info (including config example) is
available at
http://hpwww.ec-lyon.fr/~vincent/apache/mod_put.html
-- Erdmut Pfeifer science+computing ag -- Bugs come in through open windows. Keep Windows shut! --Received on 2002-02-20