cURL / Mailing Lists / curl-users / Single Mail

curl-users

POST

From: Johan Moraal <johan.moraal_at_gmail.com>
Date: Tue, 8 Jan 2013 16:20:11 +0200

Hi All

How do I get curl to post a list of files, each in a seperate HTTP request?

I've tried the following in a batch file:
@echo off
cls
:loop
curl --data-binary @vid1.bin 10.84.67.129/s1p0:1/vid1.bin
curl --data-binary @vid2.bin 10.84.67.129/s1p0:1/vid1.bin
curl --data-binary @vid3.bin 10.84.67.129/s1p0:1/vid1.bin
curl --data-binary @vid4.bin 10.84.67.129/s1p0:1/vid1.bin
goto loop

This posts 4 files to the server consecutively. The problem is that curl
closes the connection and exits. Then a new instance of curl is started to
post the next file.

I want one instance of curl to stay alive, and to generate a new HTTP
request for each file, over the same connection. How do I accomplish that?

-- 
Johan

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-01-08