Curl Global Community
powershell is not parsing the curl command line promperly - Printable Version

+- Curl Global Community (https://communities.curl.com)
+-- Forum: Discussions (https://communities.curl.com/forumdisplay.php?fid=1)
+--- Forum: General Curl questions (https://communities.curl.com/forumdisplay.php?fid=2)
+--- Thread: powershell is not parsing the curl command line promperly (/showthread.php?tid=887)



powershell is not parsing the curl command line promperly - ericwood - 04-12-2013


I am running a curl command in powershell on windows 7, but it is generating an error indicating a parsing issue. The command is:

curl --basic -g -u admin:admin -d "{\"name\" : \"cci-dev\" , \"serversNames\": [ \"choprogdevapp\" ], \"applications\": [ \"local$dfde14f8-ef51-46a6-a112-ae57a96a786f\" ]}" --header "Content-Type: application/json" http://myhost:8080/mmc-console-3.3.2/api/deployments
The server returns a 500 and says:
HTTP Status 500 - org.codehaus.jackson.JsonParseException: Unexpected character ('n' (code 110)): was expecting double-quote to start field name
It is as though it is stripping the internal double quotes and then the server is not recognizing the name/value pairs in the data and is complaining about the value "name"


How can I get this command to parse properly.


Thanks




RE: powershell is not parsing the curl command line promperly - heavybugtracker - 04-17-2013

I guess you wanted to ask http://curl.haxx.se/ . Here is a community site for discussing Curl, a computer language for RIAs.