How to upload multiple objects?

asked 2014-06-25 01:12:44 -0600

Darshan Ghumare gravatar image

Hi All,

How I can upload multiple objects (in batches) to Swift cluster? Is it possible to use multipart/formdata HTTP POST for this? I tried http://curl.haxx.se/libcurl/c/postit2.html (http://curl.haxx.se/libcurl/c/postit2...) but got following output without object been uploaded.

(SEND/RECV) HEADERS: Send Hdeader: POST /v1/AUTH_cv/filesystem/ HTTP/1.1 Host: 192.168.2.5:8080 Accept: / Expect: 100-continue X-Auth-Token: AUTH_tka1311a4bdb06480aa0d56b4d2c104924 Content-Length: 5621 Content-Type: multipart/form-data; boundary=------------------------4b012a91b482a75d

Recv Hdeader: HTTP/1.1 204 No Content Recv Hdeader: Content-Length: 0 Recv Hdeader: Content-Type: text/html; charset=UTF-8 Recv Hdeader: X-Trans-Id: tx0ecff13000f44a91a6389-0053aab50a Recv Hdeader: Date: Wed, 25 Jun 2014 11:39:54 GMT Recv Hdeader:

Please help.

Thanks, Darshan

edit retag flag offensive close merge delete