Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How would i replicate this curl GET request with --data-urlencode on postman

Tags:

postman

How do i add --data-urlencode parameter to postman as that is my main issue.

curl -X GET \
  -H "X-Parse-Application-Id: ${APPLICATION_ID}" \
  -H "X-Parse-REST-API-Key: ${REST_API_KEY}" \
  -G \
  --data-urlencode 'where={"playerName":"Sean Plott","cheatMode":false}' \
  https://api.parse.com/1/classes/GameScore

Thanks.

like image 475
miknonny Avatar asked Apr 14 '16 14:04

miknonny


People also ask

How can I get data Urlencode in Postman?

URL-encoded data uses the same encoding as URL parameters. If your API requires url-encoded data, select x-www-form-urlencoded in the Body tab of your request. Enter your key-value pairs to send with the request and Postman will encode them before sending.

What is -- data Urlencode in curl?

To help you send data you have not already encoded, curl offers the --data-urlencode option. This option offers several different ways to URL encode the data you give it. You use it like --data-urlencode data in the same style as the other --data options.


1 Answers

  1. Provide -H values in Headers
  2. Use below GET url

    https://api.parse.com/1/classes/GameScore?where={"playerName":"Sean Plott","cheatMode":false}

like image 73
Narasimhan Avatar answered Sep 28 '22 00:09

Narasimhan