From: William Crawford Date: 2006-08-19T19:01:01+09:00 Subject: Re: Why is my http call failing? 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: #=> 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/.