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:

Hi,

require “net/http”
req = Net::HTTP.new(‘google.com’, 80)
p req.request_head(’/’)

George

On Oct 5, 2007, at 11:00 , Roger P. wrote:

Alex Y. 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.

I believe this is an intentionally omitted feature.

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

Alex Y. 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:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs