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