# File lib/nanoc/extra/checking/checks/external_links.rb, line 139
    def request_url_once(url, req_method = Net::HTTP::Head)
      path = (url.path.nil? || url.path.empty? ? '/' : url.path)
      req = req_method.new(path)
      http = Net::HTTP.new(url.host, url.port)
      if url.instance_of? URI::HTTPS
        http.use_ssl = true
        http.verify_mode = OpenSSL::SSL::VERIFY_NONE
      end
      res = http.request(req)
    end