json - How to interpret Parse REST API without --data-url-encode? -


for prase rest api, can have

curl -x \   -h "x-parse-application-id: y6i5v9pqoaaglnknuljju5odt72ffscponqqphx9" \   -h "x-parse-rest-api-key: t6stkwy6xqvmystbqeszfmli3nazzk9koxnacehr" \   -g \   --data-url-encode 'where={"username":"someuser"}' \   https://api.parse.com/1/users 

now i'm trying send request without --data-url-encode, append related query url https://api.parse.com/1/users, shall do?

i tried

curl -x \       -h "x-parse-application-id: y6i5v9pqoaaglnknuljju5odt72ffscponqqphx9" \       -h "x-parse-rest-api-key: t6stkwy6xqvmystbqeszfmli3nazzk9koxnacehr" \       -g \       https://api.parse.com/1/users?where={"username":"someuser"} 

but doesn't work.

thank you.

first encode where={"username":"someuser"} where%3d%7b%22username%22%3a%22someuser%22%7d,

curl -x \       -h "x-parse-application-id: y6i5v9pqoaaglnknuljju5odt72ffscponqqphx9" \       -h "x-parse-rest-api-key: t6stkwy6xqvmystbqeszfmli3nazzk9koxnacehr" \       -g \       https://api.parse.com/1/users?where%3d%7b%22username%22%3a%22someuser%22%7d 

works


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -