Francis Cianfrocca 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 ).
> 
> 
> What happens if you use a more recent version of Windows?

This works for me on WinXP and a somewhat recent version of Curt's 
Windows build:

require 'net/http'

Net::HTTP.start("code.whytheluckystiff.net",80) { |http|
    print(http.head('/yaml'))
  }
#<Net::HTTPOK:0x2b4bff0>


I have ZoneAlarm, but it's been tamed to allow Ruby code.  I have the 
built-in Windows firewall turned off.


-- 
James Britt

http://www.ruby-doc.org       - Ruby Help & Documentation
http://www.artima.com/rubycs/ - The Journal By & For Rubyists
http://www.rubystuff.com      - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com     - Playing with Better Toys