dimanche 11 septembre 2016

Get http response times over 1 minutes to HTTPS URL

I am trying to get http response times over 1 minutes from my location to https://example.com.I used below code for my initial step,but how I can get http response times over 1 minute.

uri = URI('https://example.com')

Net::HTTP.start(uri.host, uri.port,   
:use_ssl => uri.scheme == 'https') do |http|
request = Net::HTTP::Get.new uri

response = http.request request # Net::HTTPResponse object 
end 

Aucun commentaire:

Enregistrer un commentaire