Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- λ http -v post 127.0.0.1:8000/api-token-auth/ password=adminadmin username=admin
- POST /api-token-auth/ HTTP/1.1
- Accept: application/json, */*
- Accept-Encoding: gzip, deflate
- Connection: keep-alive
- Content-Length: 47
- Content-Type: application/json
- Host: 127.0.0.1:8000
- User-Agent: HTTPie/0.9.9
- {
- "password": "adminadmin",
- "username": "admin"
- }
- HTTP/1.0 200 OK
- Allow: POST, OPTIONS
- Content-Length: 52
- Content-Type: application/json
- Date: Tue, 02 May 2017 07:44:07 GMT
- Server: WSGIServer/0.2 CPython/3.6.1
- X-Frame-Options: SAMEORIGIN
- {
- "token": "23ac1e2409151736993cad8629d62068628ff6d3"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement