Thread Rating:
  • 458 Vote(s) - 2.94 Average
  • 1
  • 2
  • 3
  • 4
  • 5
powershell is not parsing the curl command line promperly
04-12-2013, 02:18 AM,
#1
powershell is not parsing the curl command line promperly

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

04-17-2013, 12:00 PM,
#2
RE: powershell is not parsing the curl command line promperly
I guess you wanted to ask http://curl.haxx.se/ . Here is a community site for discussing Curl, a computer language for RIAs.


Possibly Related Threads...
Thread Author Replies Views Last Post
  Curl execute Oracle database procedure NamDH 3 4,054 04-21-2017, 03:40 PM
Last Post: tdeng
  TLS通信下でCould not deserialize the object from Curl.発生 MIT 3 4,767 03-10-2017, 08:35 AM
Last Post: MIT
  Protecting SSL private key in a Curl script aensys 1 2,363 02-10-2017, 02:02 PM
Last Post: heavybugtracker
  curl library 7.36.0: curl_easy_perform() function call failed when used for getting a joezhao 1 3,632 10-19-2016, 09:41 AM
Last Post: dyoshida
  Curl IDE からのランチャが見つかりません umemura 1 3,771 06-30-2016, 10:12 AM
Last Post: umemura
  Curl RTE Install smtit 1 2,738 05-06-2016, 12:36 PM
Last Post: dice256
  Curl RTE Command line smtit 1 2,917 04-19-2016, 09:35 AM
Last Post: dice256
  What OS that CURL can support for deloyment? tiennv 1 4,574 08-22-2015, 02:12 AM
Last Post: tdeng
  Curl RTEのPPAPIプラグインについて でり 1 4,398 06-09-2015, 11:03 AM
Last Post: でり
  cURL Client app Michael-2015 1 3,852 04-16-2015, 12:27 PM
Last Post: dyoshida
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('887')