[Top][All Lists]

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

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

From: Daniel Stenberg
Subject: Re: [Bug-wget] Syntax for RESTful scripting options
Date: Wed, 6 Mar 2013 19:42:21 +0100 (CET)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

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

reply via email to

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