"Tony Lewis" <[email protected]> writes: > Hrvoje Niksic wrote: > >> Another possibility would be to add some more syntax to --method so as to >> allow --method=POST:file=foo, and also --method=PUT:data=abc.... > > Since '=' is a valid (and frequent) delimiter for what follows "data=" > perhaps another pair of delimiters would be better. How about > --method=POST,data:a=1&b=2 instead?
Yes, the use of `=' might cause some confusion. There are also other possibilities to make the common case short: --method=POST:<data...> --method=POST,file:<filename...> In other words, omit the ",data" part when data is used, and specify ",file" when file is used -- because it's used less often, and file names are shorter than inline data.
