[Answered ]-POST request to Django DRF call working in cURL but not with Postman

1👍

See your URL in postman. There is attached query String with the URL.So remove that query String from the URL and send parameters as a post request like this.

http://localhost:8000/api/login/

1👍

Even this is very old question, but if this answer would be helpful…
I had exactly same issue

solution:
don’t put username and password in address bar,but only

enter image description here

and in body put json data of your username and password as below

enter image description here

be careful, don’t use single quotation marks”, but use double quotation marks “” instead, otherwise will fail, no clue why

👤Ro Ma

0👍

Depending on how your API is set up, you probably need to specify the content type in your request headers, Content-Type: application/json.

👤MrName

Leave a comment