Different body for same Curl request sent from Windows and Ubuntu -


i'm trying send curl request both windows , ubuntu system rest api. following request

curl -k -x post  http://172.16.76.1:8080/test -d 'sample_param={"user_info":{"name":"abc","age":"20"}}' 

when read server side, following 2 different content data each os

body curl request ubuntu:

sample_param={"user_info":{"name":"abc","age":"20"}} 

body curl request windows:

sample_param={user_info:{name:abc,age:20}} 

(note double quotations missing)

as result cannot json object request.

can point out mistake , give solution this. in advance

changing curl command following worked

curl -k -x post http://172.16.76.1:8080/test -d "sample_param={\"user_info\":{\"name\":\"abc\",\"age\":\"20\"}}" 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -