[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 00:51:12 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Darshit Shah <address@hidden> writes:

> 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.

Since the proposed options influence the sending of request body, how
about: --request-body=... and --request-body-file=...?  This also
removes the need to have two pairs of identical options only because the
method is mentioned in the name of the option.

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....
That way both --post-data and --post-file would become deprecated and no
new options would be needed.

reply via email to

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