url = URI("https://www1.nseindia.com/live_market/dynaContent/live_analysis/gainers/niftyGainers1.json")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
response = https.request(request)
this code giving Net::ReadTimeout error but it is working on any browser and postman.