BTW the error you get it doesn't have to do with the authorization.
It says that it can't resolve the url.
Is the url you posted the actual url that you are trying? It doesn't
seem right.
On 23/08/2016 09:06 μμ, 'voger' via Django REST framework wrote:
Personally I prefer "postman rest client". Much less trouble bout since
you insist going CLI here is the notes file from
codingforentrepreneurs.com course on django Rest Framework.
They have it open in github and I think this particular line might
interest you.
https://github.com/codingforentrepreneurs/srvup-rest-framework/blob/master/src/srvup/api_curl_tests.py#L30
On 23/08/2016 12:44 πμ, bit.io.consult...@gmail.com wrote:
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 REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to django-rest-framework+unsubscr...@googlegroups.com
<mailto:django-rest-framework+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django
REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.