cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl HTTP PUT to a URL ending in "/"

From: Toby White <toby.o.h.white_at_googlemail.com>
Date: Fri, 16 Jan 2009 15:32:13 +0000

I want to PUT to the URL

    http://example.org/path/

but curl won't seem to let me.

If I do the obvious

    curl -T filename http://example.org/path/

then curl actually tries to do the PUT on

    http://example.org/path/filename

which is not what I want - I want the PUT request to go directly to
the URL I've asked for.

How do I get curl to do what I want?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-01-16