cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: multiple POST requests while reusing the TCP connection

From: Michele Mor <m.mor.mail_at_gmail.com>
Date: Thu, 7 Nov 2013 15:22:32 +0000

On Thu, Nov 7, 2013 at 2:02 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Wed, 6 Nov 2013, JustAn0therAcc0unt . wrote:
>
> For example:
>> curl -o 1.jpg http://example.com/1.jpg -o 2.jpg http://example.com/2.jpg
>>
>> I need to do the same, but with different post queries to the same URL.
>>
>> I thought maybe this would work:
>> curl -d "a=1" -o 1 http://example.com/script.php -d "a=2" -o 2
>> http://example.com/script.php
>>
>> But instead of separating the -d arguments per request, it just adds them
>> together.
>>
>> Is there any way to achieve what I want with cURL?
>>
>
> Nope. We've previously discussed adding that ability but so far we haven't.
>
>
Is there any particular reason for that?
I mean, is it because technically is difficult to achieve or because you
believe that would lead to security issues?

To avoid this issue, is there anything that the webmaster can do?
I can email him and tell him to change something, but I need to know what
it is!

Thanks.

-------------------------------------------------------------------
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-11-07