[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Syntax for RESTful scripting options

From: Hrvoje Niksic
Subject: Re: [Bug-wget] Syntax for RESTful scripting options
Date: Sun, 10 Mar 2013 12:59:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

"Tony Lewis" <address@hidden> writes:

> Hrvoje Niksic wrote:
>> Another possibility would be to add some more syntax to --method so as to
>> allow --method=POST:file=foo, and also --method=PUT:data=abc....
> Since '=' is a valid (and frequent) delimiter for what follows "data="
> perhaps another pair of delimiters would be better. How about
> --method=POST,data:a=1&b=2 instead?

Yes, the use of `=' might cause some confusion.  There are also other
possibilities to make the common case short:


In other words, omit the ",data" part when data is used, and specify
",file" when file is used -- because it's used less often, and file
names are shorter than inline data.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]