I Exctract Curl from postman, but not working as following :
curl --insecure --location --request POST "https://172.25.128.114/api/iban/term/list " --header 'Accept: application/json' --header 'X-Forwarded-For: 81.12.112.243' --header 'Authorization: Basic a2FzaGVmdXNlcjpFbmVhbWlAMTIzNDU=' --header 'Content-Type: application/json' --header 'Cookie: JSESSIONID=B10D83AE3D70741D637BA3C2E3F1FB24' --data-raw '{ "iban":"IR220540202902540062587008","page" : 1 }'
CodePudding user response:
Problem solved after changing single quotation to double quotation (postman generate wrong curl by single quotation)
curl -k --location --request POST "https://172.25.128.114/api/iban/term/list " --header "Accept: application/json" --header "X-Forwarded-For: 81.12.112.243" --header "Authorization: Basic a2FzaGVmdXNlcjpFbmVhbWlAMTIzNDU=" --header "Content-Type: application/json" --data-raw "{ "iban":"IR220540202902540062587008","page" : 1 }"