Advertisement
Guest User

Untitled

a guest
Jun 29th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. curl -v -L "http://localhost:8000/o/authorize/?client_id=${clientId}&response_type=code&state=random_state_string"
  2. * Hostname was NOT found in DNS cache
  3. * Trying ::1...
  4. * connect to ::1 port 8000 failed: Connection refused
  5. * Trying fe80::1...
  6. * connect to fe80::1 port 8000 failed: Connection refused
  7. * Trying 127.0.0.1...
  8. * Connected to localhost (127.0.0.1) port 8000 (#0)
  9. > GET /o/authorize/?client_id=fiXzCWfEocpT5Ff2TlftBcBRMC0zGSBQzDIS0sn0&response_type=code&state=random_state_string HTTP/1.1
  10. > User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
  11. > Host: localhost:8000
  12. > Accept: */*
  13. > Referer:
  14. >
  15. * HTTP 1.0, assume close after body
  16. < HTTP/1.0 302 FOUND
  17. < Date: Tue, 30 Jun 2015 04:06:14 GMT
  18. < Server: WSGIServer/0.2 CPython/3.4.3
  19. < Vary: Authorization, Cookie
  20. < Content-Type: text/html; charset=utf-8
  21. < Location: http://localhost:8000/accounts/login/?next=/o/authorize/%3Fclient_id%3DfiXzCWfEocpT5Ff2TlftBcBRMC0zGSBQzDIS0sn0%26response_type%3Dcode%26state%3Drandom_state_string
  22. < X-Frame-Options: SAMEORIGIN
  23. <
  24. * Closing connection 0
  25. * Issue another request to this URL: 'http://localhost:8000/accounts/login/?next=/o/authorize/%3Fclient_id%3DfiXzCWfEocpT5Ff2TlftBcBRMC0zGSBQzDIS0sn0%26response_type%3Dcode%26state%3Drandom_state_string'
  26. * Hostname was found in DNS cache
  27. * Trying ::1...
  28. * connect to ::1 port 8000 failed: Connection refused
  29. * Trying fe80::1...
  30. * connect to fe80::1 port 8000 failed: Connection refused
  31. * Trying 127.0.0.1...
  32. * Connected to localhost (127.0.0.1) port 8000 (#1)
  33. > GET /accounts/login/?next=/o/authorize/%3Fclient_id%3DfiXzCWfEocpT5Ff2TlftBcBRMC0zGSBQzDIS0sn0%26response_type%3Dcode%26state%3Drandom_state_string HTTP/1.0
  34. > User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
  35. > Host: localhost:8000
  36. > Accept: */*
  37. > Referer: http://localhost:8000/o/authorize/?client_id=fiXzCWfEocpT5Ff2TlftBcBRMC0zGSBQzDIS0sn0&response_type=code&state=random_state_string
  38. >
  39. * HTTP 1.0, assume close after body
  40. < HTTP/1.0 200 OK
  41. < Date: Tue, 30 Jun 2015 04:06:14 GMT
  42. < Server: WSGIServer/0.2 CPython/3.4.3
  43. < Last-Modified: Tue, 30 Jun 2015 04:06:14 GMT
  44. < X-Frame-Options: SAMEORIGIN
  45. < Expires: Tue, 30 Jun 2015 04:06:14 GMT
  46. < Cache-Control: max-age=0
  47. < Vary: Cookie, Authorization
  48. < Content-Type: text/html; charset=utf-8
  49. < Set-Cookie: csrftoken=f0u3zHExEoWywYHVlnZBTjJxBdruE8kh; expires=Tue, 28-Jun-2016 04:06:14 GMT; Max-Age=31449600; Path=/
  50. <
  51.  
  52. <!DOCTYPE html>
  53. <html lang="en">
  54. <head>
  55. <link rel="stylesheet" href="style.css" />
  56. <title>My amazing site</title>
  57. </head>
  58.  
  59. <body>
  60. <div id="sidebar">
  61.  
  62. <ul>
  63. <li><a href="/">Home</a></li>
  64. <li><a href="/blog/">Blog</a></li>
  65. </ul>
  66.  
  67. </div>
  68.  
  69. <div id="content">
  70.  
  71.  
  72.  
  73.  
  74. <form method="post" action="/accounts/login/">
  75. <input type='hidden' name='csrfmiddlewaretoken' value='f0u3zHExEoWywYHVlnZBTjJxBdruE8kh' />
  76. <table>
  77. <tr>
  78. <td><label for="id_username">Username:</label></td>
  79. <td><input id="id_username" maxlength="254" name="username" type="text" /></td>
  80. </tr>
  81. <tr>
  82. <td><label for="id_password">Password:</label></td>
  83. <td><input id="id_password" name="password" type="password" /></td>
  84. </tr>
  85. </table>
  86.  
  87. <input type="submit" value="login" />
  88. <input type="hidden" name="next" value="/o/authorize/?client_id=fiXzCWfEocpT5Ff2TlftBcBRMC0zGSBQzDIS0sn0&amp;response_type=code&amp;state=random_state_string" />
  89. </form>
  90.  
  91.  
  92. </div>
  93. </body>
  94. </html>
  95. * Closing connection 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement