require 'net/http'
def perform_query(target_url)
uri = URI.parse(target_url)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri.request_uri)
http.request(request)
end
require 'net/http'
def perform_query(target_url)
uri = URI.parse(target_url)
http = Net::HTTP.new(uri.host, uri.port)
request = Net::HTTP::Get.new(uri.request_uri)
request['header-key'] = 'header-value'
http.request(request)
end