[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: |
Thu, 07 Mar 2013 08:41:24 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
Darshit Shah <address@hidden> writes:
> Okay, I just checked. The man page clearly states:
>
>> In particular, they *both *expect content of the form
>> "key1=value1&key2=value2"
Good point. The man page should be changed make it clear that it's the
*server* that expects such post data when processing HTML forms, but
that they are in no way inherent to HTTP or to Wget (except for the
default Content-Type, which can be overridden).
> So then how to unify --post-data and --post-file into one option?
Why would it need to be one option when they do different things?
Perhaps I'm missing something, but --method=POST --post-data=foo (or
--post-file=bar) seems fine to me. If you want to be able send
arbitrary contents with requests, those can be renamed to
`--request-data' and `--request-file', keeping the old options for
compatibility.
- Re: [Bug-wget] Syntax for RESTful scripting options, (continued)
- Re: [Bug-wget] Syntax for RESTful scripting options, Giuseppe Scrivano, 2013/03/05
- Re: [Bug-wget] Syntax for RESTful scripting options, Darshit Shah, 2013/03/06
- Re: [Bug-wget] Syntax for RESTful scripting options, Daniel Stenberg, 2013/03/06
- Re: [Bug-wget] Syntax for RESTful scripting options, Darshit Shah, 2013/03/06
- Re: [Bug-wget] Syntax for RESTful scripting options, Daniel Stenberg, 2013/03/06
- Re: [Bug-wget] Syntax for RESTful scripting options, Hrvoje Niksic, 2013/03/06
- Re: [Bug-wget] Syntax for RESTful scripting options, Giuseppe Scrivano, 2013/03/06
- Re: [Bug-wget] Syntax for RESTful scripting options, Darshit Shah, 2013/03/06
- Re: [Bug-wget] Syntax for RESTful scripting options,
Hrvoje Niksic <=