[Top][All Lists]

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

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

From: Giuseppe Scrivano
Subject: Re: [Bug-wget] Syntax for RESTful scripting options
Date: Sun, 10 Mar 2013 19:05:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Ángel González <address@hidden> writes:

> On 08/03/13 19:18, Darshit Shah wrote:
>> Okay gathering inputs from all the replies above., I think the best way to
>> move forward would be to implement a --method=<GET|POST|PUT|DELETE>
>> followed by --post-data or --post-file in case of POST and --put-data
>> --put-file in case of the PUT option.
>> In other cases wget expects the URL next.
>> The GET option is included only for completeness.
>> Please do let me know if I'm missing something.
> Even easier, just accept anything as method, and send that (changing to
> uppercase).
> --post-data and --post-file would also work for put, but you may set 
> --put-data
> --put-file as aliases for niceness.

please don't add these.  I don't think we would like to add a new pair
of --FOO-data, --FOO-file for any method we will implement.  As already
suggested by Hrvoje, just add --body-data and --body-file that are
synonyms for --post-data and --post-file; we can't drop these for
backward compatibility.
It will also be easier for users, if someone wants to use a different
method then she needs to change only one value in the script, not two.


reply via email to

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