M
Mateusz Winiarski
Hi,
I want to run simple code:
require 'net/http'
Net::HTTP.start('www.rubyinside.com') do |http|
req = Net::HTTP::Get.new('/test.txt')
puts http.request(req).body
end
but I've got following error:
A request to send or receive data was disallawed because the socket is
not connected and (when sending on a datagram socket using a sendto
call) no address was supplied. (Errno::ENOTCONN).
Is it because im behind proxy ?
How to make code run smoothly ?
Thx
I want to run simple code:
require 'net/http'
Net::HTTP.start('www.rubyinside.com') do |http|
req = Net::HTTP::Get.new('/test.txt')
puts http.request(req).body
end
but I've got following error:
A request to send or receive data was disallawed because the socket is
not connected and (when sending on a datagram socket using a sendto
call) no address was supplied. (Errno::ENOTCONN).
Is it because im behind proxy ?
How to make code run smoothly ?
Thx