2012-12-14 1 views

답변

6

그냥 get 좋아하지만 대신 head있어 :

page = agent.head 'http://www.google.com/' 
page.body.length 
#=> 0 
page.header.keys 
#=> ["date", "expires", "cache-control", "content-type", "set-cookie", "p3p", "server", "x-xss-protection", "x-frame-options", "transfer-encoding"] 
+0

이 추측 한 경우, 감사합니다! –