This should work :
curl -i -H "Accept: application/json" 'server:5050/a/c/getName{"param0":"pradeep"}'
use option -i instead of x.
More Related Contents:
- How do I POST JSON data with cURL?
- Create REST API without using any backend
- How to POST JSON Data With PHP cURL?
- What is “406-Not Acceptable Response” in HTTP?
- Posting a File and Associated Data to a RESTful WebService preferably as JSON
- Use of PUT vs PATCH methods in REST API real life scenarios
- Disable Hypertext Application Language (HAL) in JSON?
- Using curl POST with variables defined in bash script functions
- How do I send a JSON string in a POST request in Go
- What is the difference between resource and resource representation in REST?
- REST with Spring and Jackson full data binding
- Why does RestTemplate not bind response representation to PagedResources?
- JSON parse error: Can not construct instance of java.time.LocalDate: no String-argument constructor/factory method to deserialize from String value
- Post a json body with swagger
- Spring REST service: retrieving JSON from Request
- pass JSON to HTTP POST Request
- Bash script: Use string variable in curl JSON Post data
- Unable to find a MessageBodyReader of content-type application/json and type class java.lang.String
- How to pass payload via JSON file for curl?
- JSON, REST, SOAP, WSDL, and SOA: How do they all link together
- curl json post request via terminal to a rails app
- Modify default JSON error response from Spring Boot Rest Controller
- How to escape single quotes into double quotes into single quotes
- JsonMappingException: could not initialize proxy – no Session
- REST API Best practices: args in query string vs in request body
- “SyntaxError: Unexpected token < in JSON at position 0"
- How to send a POST request with BODY in swift
- Swift JSONEncoder number rounding
- Json.NET (Newtonsoft.Json) – Two ‘properties’ with same name?
- Formatting DynamoDB data to normal JSON in AWS Lambda