Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl -v -L "http://localhost:8000/o/authorize/?client_id=${clientId}&response_type=code&state=random_state_string"
- * Hostname was NOT found in DNS cache
- * Trying ::1...
- * connect to ::1 port 8000 failed: Connection refused
- * Trying fe80::1...
- * connect to fe80::1 port 8000 failed: Connection refused
- * Trying 127.0.0.1...
- * Connected to localhost (127.0.0.1) port 8000 (#0)
- > GET /o/authorize/?client_id=fiXzCWfEocpT5Ff2TlftBcBRMC0zGSBQzDIS0sn0&response_type=code&state=random_state_string HTTP/1.1
- > User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
- > Host: localhost:8000
- > Accept: */*
- > Referer:
- >
- * HTTP 1.0, assume close after body
- < HTTP/1.0 302 FOUND
- < Date: Tue, 30 Jun 2015 04:06:14 GMT
- < Server: WSGIServer/0.2 CPython/3.4.3
- < Vary: Authorization, Cookie
- < Content-Type: text/html; charset=utf-8
- < Location: http://localhost:8000/accounts/login/?next=/o/authorize/%3Fclient_id%3DfiXzCWfEocpT5Ff2TlftBcBRMC0zGSBQzDIS0sn0%26response_type%3Dcode%26state%3Drandom_state_string
- < X-Frame-Options: SAMEORIGIN
- <
- * Closing connection 0
- * Issue another request to this URL: 'http://localhost:8000/accounts/login/?next=/o/authorize/%3Fclient_id%3DfiXzCWfEocpT5Ff2TlftBcBRMC0zGSBQzDIS0sn0%26response_type%3Dcode%26state%3Drandom_state_string'
- * Hostname was found in DNS cache
- * Trying ::1...
- * connect to ::1 port 8000 failed: Connection refused
- * Trying fe80::1...
- * connect to fe80::1 port 8000 failed: Connection refused
- * Trying 127.0.0.1...
- * Connected to localhost (127.0.0.1) port 8000 (#1)
- > GET /accounts/login/?next=/o/authorize/%3Fclient_id%3DfiXzCWfEocpT5Ff2TlftBcBRMC0zGSBQzDIS0sn0%26response_type%3Dcode%26state%3Drandom_state_string HTTP/1.0
- > User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
- > Host: localhost:8000
- > Accept: */*
- > Referer: http://localhost:8000/o/authorize/?client_id=fiXzCWfEocpT5Ff2TlftBcBRMC0zGSBQzDIS0sn0&response_type=code&state=random_state_string
- >
- * HTTP 1.0, assume close after body
- < HTTP/1.0 200 OK
- < Date: Tue, 30 Jun 2015 04:06:14 GMT
- < Server: WSGIServer/0.2 CPython/3.4.3
- < Last-Modified: Tue, 30 Jun 2015 04:06:14 GMT
- < X-Frame-Options: SAMEORIGIN
- < Expires: Tue, 30 Jun 2015 04:06:14 GMT
- < Cache-Control: max-age=0
- < Vary: Cookie, Authorization
- < Content-Type: text/html; charset=utf-8
- < Set-Cookie: csrftoken=f0u3zHExEoWywYHVlnZBTjJxBdruE8kh; expires=Tue, 28-Jun-2016 04:06:14 GMT; Max-Age=31449600; Path=/
- <
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <link rel="stylesheet" href="style.css" />
- <title>My amazing site</title>
- </head>
- <body>
- <div id="sidebar">
- <ul>
- <li><a href="/">Home</a></li>
- <li><a href="/blog/">Blog</a></li>
- </ul>
- </div>
- <div id="content">
- <form method="post" action="/accounts/login/">
- <input type='hidden' name='csrfmiddlewaretoken' value='f0u3zHExEoWywYHVlnZBTjJxBdruE8kh' />
- <table>
- <tr>
- <td><label for="id_username">Username:</label></td>
- <td><input id="id_username" maxlength="254" name="username" type="text" /></td>
- </tr>
- <tr>
- <td><label for="id_password">Password:</label></td>
- <td><input id="id_password" name="password" type="password" /></td>
- </tr>
- </table>
- <input type="submit" value="login" />
- <input type="hidden" name="next" value="/o/authorize/?client_id=fiXzCWfEocpT5Ff2TlftBcBRMC0zGSBQzDIS0sn0&response_type=code&state=random_state_string" />
- </form>
- </div>
- </body>
- </html>
- * Closing connection 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement