0

I'm following this TUTORIAL for JWT in DJANGO here: https://www.geeksforgeeks.org/jwt-authentication-with-django-rest-framework/

I'm stuck because we are to make a POST request vial the command line. The tutorial is for Linux.

How do I make an equivalent call on Windows via command line using the following

$ http post http://127.0.0.1:4000/api/token/ username=spider password=vinayak

I know in windows we would start with curl, but then I've tried multiple things such as curl -X POST .... and get errors. such as:

Invoke-WebRequest : A parameter cannot 
be found that matches parameter name 'X'. 
At line:1 char:6

Thank you

jps
  • 15,760
  • 14
  • 59
  • 71
Katie Melosto
  • 790
  • 7
  • 15
  • 1
    In the tutorial they mentioned that https://httpie.io/ was used, which can also be installed on Windows. But if you already have curl, that should be fine too. Or tools like Postman or Fiddler. – jps May 29 '22 at 07:55

0 Answers0