[Top][All Lists]

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

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

From: Darshit Shah
Subject: Re: [Bug-wget] Syntax for RESTful scripting options
Date: Mon, 11 Mar 2013 18:46:11 +0530

Reusing post-data and post-file is not intuitive enough when we support
more options through --method.
Say, someone wished to use --method=PUT. In that case using --post-data or
--post-file is counter intuitive. Hence the need to unify them all under
one heading.

On Mon, Mar 11, 2013 at 6:46 PM, Giuseppe Scrivano <address@hidden>wrote:

> Darshit Shah <address@hidden> writes:
> >      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.
> >
> >    No. I won't. As suggested by Hrvoje, I plan on implementing as:
> >    --method=POST:<data...>
> >    --method=POST,file:<filename...>
> what is the advantage over reusing --post-data and --post-file?
> Giuseppe

Thanking You,
Darshit Shah
Research Lead, Code Innovation
Kill Code Phobia.
B.E.(Hons.) Mechanical Engineering, '14. BITS-Pilani

reply via email to

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