Thaddeus L Olczyk wrote:
> The code is simple:
> 
> Net::HTTP.start("code.whytheluckystiff.net",80) { |http|
>   print(http.head('/yaml'))
> }
> 
> The error I get is that an EINVAL exception was generated.
> 
> Using telnet to preform the same request, everything seems fine.
> 
> I am using the latest version of Ruby on Windows ( NT4 SP6 ).

That code seems to work fine on linux with Ruby 1.8.4. I get:

#<Net::HTTPOK:0xb7bef67c>=> nil

And if I change to .get('/yaml').body I get the body of the page, as 
expected.

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