On Thu, 12 Jan 2017, at 15:05, John Le Brasseur wrote:
> Hi Stefan.
> I think it is something to do with the console.
> I am on Windows but use the cmder(http://cmder.net/) console program
> doesn't normally require me to escape special characters.
> I tried the normal DOS command window, which I normally avoid, and guess
> what, it worked with the following command:
> curl -X PUT "
> --data-binary @img.jpg -H "Content-Type: image/jpeg"
> I knew my syntax was correct.
> Correct file size and type.
> The console gymnastics in Windows is the biggest problem for me.
> Thank you Stefan and Robert for the inputs.
https://technet.microsoft.com/en-us/library/cc723564.aspx is the
reference for dealing with windows escape rules.
see also the dated but correct wrt windows shell quoting