I need to retrieve data from external system. It successfully accept request like this:
curl --data “authKey=” http://app.arnica.pro/primehill/primeHillApi/entryPoint/method/getClients
But when I try to make this request in Postman it fails.
I think that it happens because Postman send payload with other option. For example, if i choose option x-www-form-urlencoded
, and then go to code → cURL I got this:
curl --location --request POST ‘http://app.arnica.pro/primehill/primeHillApi/entryPoint/method/getClients’
–header ‘Content-Type: application/x-www-form-urlencoded’
–header ‘Cookie: PHPSESSID=hp43k9rog7vtgu6jk9hlbbnlq5’
–data-urlencode ‘authKey=’
So, payload option is --data-urlencode
instead of just --data
now.
I’ve tried to import cURL request that works, but Postman change opton --data-urlencode
and request failed.
Is there in Postman any options to change it to --data
manualy?
UPD: screenshots of results with different options: