cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: multiple POST requests while reusing the TCP connection

From: JustAn0therAcc0unt <mailnew4ster_at_gmail.com>
Date: Wed, 13 Nov 2013 16:14:05 +0200

On 13.11.2013 2:37, Daniel Stenberg wrote:
> On Wed, 13 Nov 2013, JustAn0therAcc0unt wrote:
>
>>> Yeps. This is actually what is referred to as "url-specific options" in
>>> the TODO:
>>>
>>> http://curl.haxx.se/docs/todo.html#url_specific_options
>
>> Also, it would be great if it would be supported for the config file
>> as well. I'm not sure about the colon as a separator, but that's not
>> as important.
>
> I agree on both points. But what would be a better separator? Perhaps
> simply a double-dash like -- which is used in other command line tools
> to separate options from other stuff?
>
> curl URL1 -- -T file2 URL2
>
> But of course, we can also use other magic strings like == or ++ etc...
>

A double-dash is actually not bad. It looks OK in both the command line
and the config file. It has no chance of breaking some command line
interface which interprets magic symbols or something. And it's surely
better than --NEWCMD or similar.
-------------------------------------------------------------------
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-13