From: Smp Mp Date: 2011-07-23T03:59:40+09:00 Subject: open localhost url Hi, When I call call the below code I get a timeout. http_object = Net::HTTP.new("localhost", "3000") hresp, data = http_object.get("/documents/wdocs/generatedata?"+query_string ,"", nil) But when application is running on port 3000 and a copy of the same application is running on a different port(3001) , then it works fine. http_object = Net::HTTP.new("localhost", "3001") hresp, data = http_object.get("/documents/wdocs/generatedata?"+query_string ,"", nil) the code is called from test_controller. is there any way i could call the url? -- Posted via http://www.ruby-forum.com/.