Hello,
Newbie question. I’ve copied and imported a cURL statment as raw text from an application where it appears to be working into Postman. When I look at the code snippet (cURL) within Postman, it looks a bit different and when I send (post) I get a 400 Bad Request.
Imported (working) cURL:
curl -X POST --header ‘Content-Type: application/json’ --header ‘Accept: application/json’ -d ‘{ \
“UserName”: “John%40Doe.com”, \
“Password”: “XXXXXxxxxx1” \
}’ ‘http://testapp.local/Challenge’
Postman Generated code snippet:
curl ‘http://testapp.local/Challenge’
–header ‘Content-Type: application/json’
–header ‘Accept: application/json’
–data ‘{ \
“UserName”: “John%40Doe.com”, \
“Password”: “XXXXXxxxxx1” \
}’
Most notably, I see a missing -X POST. Is that causing a problem? If so, what/how should I proceed? Thoughts?
Thanks