[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

HTTP head request

Trans

9/24/2007 8:36:00 PM

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

T.


4 Answers

Alex Young

9/24/2007 8:51:00 PM

0

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? :-)

--
Alex

George Malamidis

9/24/2007 8:59:00 PM

0

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


Roger Pack

10/5/2007 6:00:00 PM

0

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? :-)

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

Eric Hodel

10/5/2007 6:06:00 PM

0

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? :-)
>
> It would appear open_uri doesn't have anything useful for doing head
> requests, itself.

I believe this is an intentionally omitted feature.

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