The ruby code that should get the source code of a given website doesn't work. It says that the site does not exist.
require 'uri'
require 'net/http'
uri = URI.parse("http://nice.com/careers?category=170")
http = Net::HTTP.new(uri.host, uri.port)
request = Net::HTTP::Get.new(uri.request_uri)
response=http.request(request)
@data = response.body
It does work with other sites.
- Why?
- how to fix?