Created
November 3, 2014 15:02
-
-
Save eladmeidar/04cedc98d05599631e11 to your computer and use it in GitHub Desktop.
HTTParty debugging for Grisha
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2.0.0-p576 :009 > class Zibi | |
2.0.0-p576 :010?> include HTTParty | |
2.0.0-p576 :011?> debug_output $stdout | |
2.0.0-p576 :012?> end | |
=> #<IO:<STDOUT>> | |
2.0.0-p576 :013 > Zibi.head("http://walla.co.il") | |
opening connection to walla.co.il:80... | |
opened | |
<- "HEAD / HTTP/1.1\r\nConnection: close\r\nHost: walla.co.il\r\n\r\n" | |
-> "HTTP/1.0 302 Found\r\n" | |
-> "Location: http://www.walla.co.il/\r\n" | |
-> "Server: BigIP\r\n" | |
-> "Connection: close\r\n" | |
-> "Content-Length: 0\r\n" | |
-> "\r\n" | |
Conn close | |
opening connection to www.walla.co.il:80... | |
opened | |
<- "GET / HTTP/1.1\r\nConnection: close\r\nHost: www.walla.co.il\r\n\r\n" | |
-> "HTTP/1.1 200 OK\r\n" | |
-> "Content-Type: text/html; charset=UTF-8\r\n" | |
-> "Refresh: 245\r\n" | |
-> "Pragma: no-cache\r\n" | |
-> "P3P: policyref=\"http://www.walla.co.il/w3c/p3p.xml\", CP=\"NOI DSP COR NID CURa TAIa OUR IND UNI COM NAV\"\r\n" | |
-> "Cache-Control: no-cache, no-store, must-revalidate, post-check=0, pre-check=0\r\n" | |
-> "Expires: Mon, 03 Nov 2014 15:02:05 GMT\r\n" | |
-> "Date: Mon, 03 Nov 2014 15:02:05 GMT\r\n" | |
-> "Transfer-Encoding: chunked\r\n" | |
-> "Connection: close\r\n" | |
-> "Connection: Transfer-Encoding\r\n" | |
-> "\r\n" | |
-> "0000C000\r\n" | |
reading 49152 bytes... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment