cURL GET query string is a JSON

Viewed 5317

I am try to access the remote RESTful Services API using cURL, the query string parameter has a JSON value. My cURL command like:

curl -g -i 'http://localhost:8080/context/restdev/employees/?q={"deptno":{"$lte":20}}'

If I enter the URL in the Chrome, I can get the data back. My cURL command gets: The URI is not well-formed, reason: Illegal character in query at position: 48

1 Answers
Related