20 Dec '12, 7am

Rails でアプリ内部から発行してる http をトレースする - #生存戦略 、それは - subtech: Ruby で HTTP の内容をトレースする - #生存戦略 、それは - subtech の続き。デバッグ用...

=== HTTP Request === GET http://example.com/ with headers {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Ruby'} 302 Found Location: http://www.iana.org/domains/example/ Server: BigIP Connection: Keep-Alive Content-Length: 0 ==================== === HTTP Request === GET http://www.iana.org/domains/example/ with headers {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Ruby'} 200 OK Date: Thu, 20 Dec 2012 07:16:22 GMT Server: Apache/2.2.3 (CentOS) Last-Modified: Thu, 06 Dec 2012 19:40:14 GMT Content-Length: 606 Vary: Accept-Encoding Connection: close Content-Type: text/html; charset=UTF-8 ....

Full article: http://subtech.g.hatena.ne.jp/secondlife/20121220/1355987845

Tweets