Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Problems with Net::HTTP.get
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Marek Kubica, post: 4479168"] Hello! I've been happily writing a smaller program in Ruby (I can't write bigger programs, as I'm just starting with Ruby) when a problem hit me. So I made a smaller version of the program which shows the same problem: The code is: require 'net/http' require 'uri' source = Net::HTTP.get(URI.parse('[URL]http://www.google.de/[/URL]')) puts source Looks pretty basic. But the problem is: it never gets to the last line! It hangs on the Net::HTTP.get. I've also tried Net::FTP and it hasn't worked either. I guess it could be a problem with socket.so, that's why I tested multible versions of the Ruby interpreter: 1.8.1-mswin32: does not work 1.8.1-mingw32: does not work 1.8.2-mswin32: does not work 1.8.2-mingw32: does not work 1.8.2-one-click-installer(mswin32): does not work I've tried this on Windows XP SP2 and it does not work, but on my Debian Sarge box it works without any problem. Can somebody help me getting it to work on Windows? Thanks in advance! Marek [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Problems with Net::HTTP.get
Top