[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] Syntax for RESTful scripting options
From: |
Tim Rühsen |
Subject: |
Re: [Bug-wget] Syntax for RESTful scripting options |
Date: |
Sat, 9 Mar 2013 12:09:43 +0100 |
User-agent: |
KMail/1.13.7 (Linux/3.7-trunk-amd64; KDE/4.8.4; x86_64; ; ) |
Am Freitag, 8. März 2013 schrieb Ángel González:
> 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.
Why not more general options like
--data and --data-file ?
A --data-command could be implemented later, for directly sending the output
of a command (STDIN is may be already used to read the URL(s) from). This
could be handy, if you want several files/data being sent in one request, using
multipart/form-data MIME encoding.
Regards, Tim
- Re: [Bug-wget] Syntax for RESTful scripting options, Steven M. Schweda, 2013/03/06
- Re: [Bug-wget] Syntax for RESTful scripting options, Darshit Shah, 2013/03/07
- Re: [Bug-wget] Syntax for RESTful scripting options, Tim Ruehsen, 2013/03/07
- Re: [Bug-wget] Syntax for RESTful scripting options, Hrvoje Niksic, 2013/03/07
- Re: [Bug-wget] Syntax for RESTful scripting options, Darshit Shah, 2013/03/08
- Re: [Bug-wget] Syntax for RESTful scripting options, Ángel González, 2013/03/08
- Re: [Bug-wget] Syntax for RESTful scripting options,
Tim Rühsen <=
- Re: [Bug-wget] Syntax for RESTful scripting options, Giuseppe Scrivano, 2013/03/10
- Re: [Bug-wget] Syntax for RESTful scripting options, Darshit Shah, 2013/03/11
- Re: [Bug-wget] Syntax for RESTful scripting options, Giuseppe Scrivano, 2013/03/11
- Re: [Bug-wget] Syntax for RESTful scripting options, Darshit Shah, 2013/03/11
- Re: [Bug-wget] Syntax for RESTful scripting options, Giuseppe Scrivano, 2013/03/11
- Re: [Bug-wget] Syntax for RESTful scripting options, Darshit Shah, 2013/03/11
- Re: [Bug-wget] Syntax for RESTful scripting options, Darshit Shah, 2013/03/11
- Re: [Bug-wget] Syntax for RESTful scripting options, Giuseppe Scrivano, 2013/03/11
- Re: [Bug-wget] Syntax for RESTful scripting options, Darshit Shah, 2013/03/15
- Re: [Bug-wget] Syntax for RESTful scripting options, Giuseppe Scrivano, 2013/03/16