Advertisement
Guest User

Untitled

a guest
May 2nd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. λ http -v post 127.0.0.1:8000/api-token-auth/ password=adminadmin username=admin
  2. POST /api-token-auth/ HTTP/1.1
  3. Accept: application/json, */*
  4. Accept-Encoding: gzip, deflate
  5. Connection: keep-alive
  6. Content-Length: 47
  7. Content-Type: application/json
  8. Host: 127.0.0.1:8000
  9. User-Agent: HTTPie/0.9.9
  10.  
  11. {
  12. "password": "adminadmin",
  13. "username": "admin"
  14. }
  15.  
  16. HTTP/1.0 200 OK
  17. Allow: POST, OPTIONS
  18. Content-Length: 52
  19. Content-Type: application/json
  20. Date: Tue, 02 May 2017 07:44:07 GMT
  21. Server: WSGIServer/0.2 CPython/3.6.1
  22. X-Frame-Options: SAMEORIGIN
  23.  
  24. {
  25. "token": "23ac1e2409151736993cad8629d62068628ff6d3"
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement