passwall-server icon indicating copy to clipboard operation
passwall-server copied to clipboard

need to update postman for add content type header

Open omerbasoglu-co opened this issue 5 years ago • 2 comments

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"
}'

omerbasoglu-co avatar Apr 22 '20 17:04 omerbasoglu-co

@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

mrtrkmn avatar May 27 '20 20:05 mrtrkmn

@mrturkmen06 thanks for comment!

omerbasoglu-co avatar May 31 '20 00:05 omerbasoglu-co