26 7
|
My problem: Running windows 7 and using the executable command line tool to curl my localhost server api for POST data was returning me an error that seems to be really common. The request was being sent properly with the exception that the data was not reaching the server as it should causing my REST service to insert data with null values. What seems to be causing the error: imagine something like this
Result of the returning data
After some searching i figured out that problem couldn't be the sintax used for the request since it works on UNIX shells.
I tried to work around with those " escaping it " but it still didn't work 2.
3.
So i gave up. Windows seems to messing up with the JSON object sent on POST |
|||
53
|
I ran into the same issue on my win7 x64 laptop and was able to get it working using the curl release that is labeled Win64 - Generic w SSL by using the very similar command line format:
Which only differs from your 2nd escape version by using double-quotes around the escaped ones and the header parameter value. Definitely prefer the linux shell syntax more. |
[solved]
to your question title. If you've figured out the answer to your question, you should post it as an answer. – Cody Gray Aug 6 '12 at 23:20