cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Creating multiparted HTTP PUT request?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 9 Oct 2006 13:05:52 +0200 (CEST)

On Mon, 9 Oct 2006, Sebastian Stein wrote:

> I want to upload several files to a server using HTTP PUT. This should be
> done with a multi-parted HTTP request. Can I create such a request using
> curl? So far I have only seen examples for a multi-parted HTTP POST request.

You can use -F and then change the actual request keyword with -X PUT. If
that's not good enough, you need to build the entire request-body yourself and
-T it.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-10-09