HTTP head request

Hmm... how do a HTTP head request? Does 'open_uri' have something for
this?

T.

Trans wrote:

Hmm... how do a HTTP head request? Does 'open_uri' have something for
this?

T.

You don't mean ri Net::HTTP#head, do you? :slight_smile:

···

--
Alex

Hi,

require "net/http"
req = Net::HTTP.new('google.com', 80)
p req.request_head('/')

George

···

On 24 Sep 2007, at 21:36, Trans wrote:

Hmm... how do a HTTP head request? Does 'open_uri' have something for
this?

T.

It would appear open_uri doesn't have anything useful for doing head
requests, itself.

Alex Young wrote:

···

Trans wrote:

Hmm... how do a HTTP head request? Does 'open_uri' have something for
this?

T.

You don't mean ri Net::HTTP#head, do you? :slight_smile:

--
Posted via http://www.ruby-forum.com/.

I believe this is an intentionally omitted feature.

···

On Oct 5, 2007, at 11:00 , Roger Pack wrote:

Alex Young wrote:

Trans wrote:

Hmm... how do a HTTP head request? Does 'open_uri' have something for
this?

You don't mean ri Net::HTTP#head, do you? :slight_smile:

It would appear open_uri doesn't have anything useful for doing head
requests, itself.

--
Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars