Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

need to update postman for add content type header #49

Open
omerbasoglu-co opened this issue Apr 22, 2020 · 2 comments
Open

need to update postman for add content type header #49

omerbasoglu-co opened this issue Apr 22, 2020 · 2 comments

Comments

@omerbasoglu-co
Copy link
Contributor

curl request's don't contain content type header , it did not work on my first attempts

current version

curl --location --request POST 'http://localhost:3625/auth/signin' \   ✔
--data-raw '{
        "Username":"passwall",
        "Password":"password"
}'

working version with curl

curl --location --request POST 'http://localhost:3625/auth/signin' \   ✔
--header 'Content-Type: application/json' \
--data-raw '{
        "Username":"passwall",
        "Password":"password"
}'
@mrtrkmn
Copy link
Contributor

mrtrkmn commented May 27, 2020

@omerbasoglu-co

I think, it is related to version of curl tool, the given information on Postman API doc works nicely for curl version 7.64.1. However, there is no harm to include --header to curl
command :)

Just wanted to comment.

Screenshot 2020-05-27 at 23 44 58

@omerbasoglu-co
Copy link
Contributor Author

@mrturkmen06 thanks for comment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants