[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: |
Thu, 7 Mar 2013 01:53:10 +0530 |
The only reason I said that is, even currently wget only accepts post data
in a key=value format.*
*sorry it's not key:value but key=value.
On Mar 7, 2013 12:12 AM, "Daniel Stenberg" <address@hidden> wrote:
> On Wed, 6 Mar 2013, Darshit Shah wrote:
>
> I intend to use the following logic in merging them:
>>
>> wget --method=POST [data/file] URL
>>
>> The text immediately following --method=POST is first assumed to be data.
>> If however it does not exist in the key:value format, assume that to be a
>> file path and try to read that file. If the file does not exist, return an
>> error.
>>
>
> To me, that sounds like the wrong path to go.
>
> You can send whatever you want in a post, there's no magic "key:value
> format" in HTTP. What if you want to just send the string "/dev/null" in
> the POST? It is not key:value and it is an existing file path...
>
> --
>
> / daniel.haxx.se
>
- [Bug-wget] Syntax for RESTful scripting options, Darshit Shah, 2013/03/05
- Re: [Bug-wget] Syntax for RESTful scripting options, Ángel González, 2013/03/05
- 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 <=
- 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, 2013/03/07