Guest User

Untitled

a guest
Oct 31st, 2017
538
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. POST /session/login HTTP/1.1
  2. Host: api.test.co.uk
  3. Content-Type: application/x-www-form-urlencoded
  4. Origin: http://test.co.uk
  5. Accept-Language: en-gb
  6. Accept-Encoding: br, gzip, deflate
  7. Connection: keep-alive
  8. Accept: application/json, text/plain, */*
  9. User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38
  10. Referer: http://test.co.uk/login
  11. DNT: 1
  12. Content-Length: 56
  13.  
  14. grant_type=password&username=foo&password=bar
  15.  
  16. HTTP/1.1 307 Temporary Redirect
  17. Server: nginx/1.12.1
  18. Date: Tue, 31 Oct 2017 18:37:10 GMT
  19. Content-Type: text/html
  20. Content-Length: 0
  21. Connection: keep-alive
  22. Access-Control-Allow-Origin: *
  23. Access-Control-Allow-Methods: DELETE, GET, OPTIONS, POST, PUT
  24. Access-Control-Allow-Headers: Accept, Accept-Language, Authorization, Content-Language, Content-Length, Content-Type, Origin, Range, X-Requested-With
  25. Access-Control-Expose-Headers: Origin, Access-Control-Allow-Origin, Access-Control-Allow-Methods, Access-Control-Allow-Headers
  26. Location: /token
  27.  
  28. POST /token HTTP/1.1
  29. Host: api.test.co.uk
  30. Content-Type: application/x-www-form-urlencoded
  31. Origin: http://test.co.uk
  32. Accept-Encoding: br, gzip, deflate
  33. Content-Length: 0
  34. Connection: keep-alive
  35. Accept: application/json, text/plain, */*
  36. User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38
  37. Referer: http://test.co.uk/login
  38. DNT: 1
  39. Accept-Language: en-gb
  40.  
  41. HTTP/1.1 400 Bad Request
  42. Server: nginx/1.12.1
  43. Date: Tue, 31 Oct 2017 18:37:10 GMT
  44. Content-Type: application/json;charset=UTF-8
  45. Content-Length: 34
  46. Connection: keep-alive
  47. Access-Control-Allow-Origin: *
  48. Access-Control-Allow-Methods: DELETE, GET, OPTIONS, POST, PUT
  49. Access-Control-Allow-Headers: Accept, Accept-Language, Authorization, Content-Language, Content-Length, Content-Type, Origin, Range, X-Requested-With
  50. Access-Control-Expose-Headers: Origin, Access-Control-Allow-Origin, Access-Control-Allow-Methods, Access-Control-Allow-Headers
  51. Cache-Control: no-cache
  52. Pragma: no-cache
  53. Expires: -1
  54.  
  55. {"error":"unsupported_grant_type"}
Add Comment
Please, Sign In to add comment