From: Robert Klemme Date: 2006-08-19T19:30:13+09:00 Subject: Re: Why is my http call failing? William Crawford wrote: > 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. Works for me, too. Local firewall that explicitly blocks accesses from ruby and not from telnet? Just a wild guess... robert