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" <dan...@haxx.se> 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 >