I using Postman, is a plugin of chrome for test xhr petitions 2016-08-22 23:42 GMT-03:00 Peter Boyles <[email protected]>:
> I am still getting a hang of using curl for testing API request from the > terminal. I have a particular issue with formatting because the API request > I am attempting requires a JWT Token to be passed with every call. The > request I am attempting to pass is PUT request and my question is where to > place the header for the JWT token authorization. I have tried the > following format and I get a error Could not resolve host: —H curl: (6) > Could not resolve host: Authorization: > > > curl -X PUT -H "Authorization: JWT <token here>" -d "field=value" > "https://url/update_record/<id>/" > > > Any ideas? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/676040dc-a7fc-4ca8-96ce-8fd09559ab87%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/676040dc-a7fc-4ca8-96ce-8fd09559ab87%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Ricardo Daniel Quiroga -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO2-wHbxedWu%3DmzqPUhCvxo93-tr_fFP9aKk7Qov%2BzRtkzucQw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

