Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t0mm0@tv:~/urlresolver/script.module.t0mm0.common/lib$ python
- Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
- [GCC 4.5.2] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> from t0mm0.common.net import Net
- >>> n = Net(http_debug=True)
- >>> h = n.http_GET('http://vidreel.com/video/NTkzNTY2/')
- send: 'GET /video/NTkzNTY2/ HTTP/1.1\r\nHost: vidreel.com\r\nUser-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.99 Safari/535.1\r\nConnection: close\r\nAccept-Encoding: gzip\r\n\r\n'
- reply: 'HTTP/1.1 302 Found\r\n'
- header: Date: Tue, 02 Aug 2011 21:09:40 GMT
- header: Server: Apache/2.2.15 (Win32) PHP/5.2.8-x64
- header: X-Powered-By: PHP/5.2.8-x64
- header: Set-Cookie: videohuman=e8f82c9773f610303883; expires=Tue, 02-Aug-2011 20:09:40 GMT; path=/
- header: Location: http://vidreel.com/human/NTkzNTY2/
- header: Content-Length: 0
- header: Connection: close
- header: Content-Type: text/html
- send: 'GET /human/NTkzNTY2/ HTTP/1.1\r\nHost: vidreel.com\r\nUser-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.99 Safari/535.1\r\nConnection: close\r\nAccept-Encoding: gzip\r\n\r\n'
- reply: 'HTTP/1.1 200 OK\r\n'
- header: Date: Tue, 02 Aug 2011 21:09:40 GMT
- header: Server: Apache/2.2.15 (Win32) PHP/5.2.8-x64
- header: X-Powered-By: PHP/5.2.8-x64
- header: Set-Cookie: videohuman=e8f82c9773f610303883; expires=Tue, 02-Aug-2011 22:09:40 GMT; path=/
- header: Set-Cookie: showfullads=0988jj; expires=Tue, 02-Aug-2011 22:09:40 GMT; path=/
- header: Connection: close
- header: Transfer-Encoding: chunked
- header: Content-Type: text/html
- >>> h2 = n.http_GET('http://vidreel.com/video/NTkzNTY2/')
- send: 'GET /video/NTkzNTY2/ HTTP/1.1\r\nHost: vidreel.com\r\nUser-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.99 Safari/535.1\r\nCookie: videohuman=e8f82c9773f610303883; showfullads=0988jj\r\nConnection: close\r\nAccept-Encoding: gzip\r\n\r\n'
- reply: 'HTTP/1.1 200 OK\r\n'
- header: Date: Tue, 02 Aug 2011 21:09:52 GMT
- header: Server: Apache/2.2.15 (Win32) PHP/5.2.8-x64
- header: X-Powered-By: PHP/5.2.8-x64
- header: Set-Cookie: videohuman=e8f82c9773f610303883; expires=Tue, 02-Aug-2011 20:09:52 GMT; path=/
- header: Set-Cookie: Video=593566%2F2283631; expires=Tue, 02-Aug-2011 22:09:52 GMT; path=/
- header: Set-Cookie: popup11=1; expires=Wed, 03-Aug-2011 21:09:52 GMT
- header: Set-Cookie: showfullads=0988jj; expires=Tue, 02-Aug-2011 20:09:52 GMT; path=/
- header: Connection: close
- header: Transfer-Encoding: chunked
- header: Content-Type: text/html
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement