title: Net https requests gives me what appears to be hex
body: <p>In ruby, I'm doing an HTTP GET request to a website that uses SSL, and for some reason it <em>only</em> gives me the data I need when proxying it through an HTTP proxy (burp suite).</p>
  
  <p>For example:</p>
  
  <pre><code>    if uri.port == 443
          response = Net::HTTP.start(uri.host, uri.port, "172.16.38.182", "8080", :use_ssl =&gt; true, :verify_mode =&gt; OpenSSL::SSL::VERIFY_NONE) {|http|
              http.request(request)
          }
      else
          response = Net::HTTP.start(uri.host, uri.port) {|http|
              http.request(request)
          }
      end
  </code></pre>
  
  <p>by proxying this through BurpSuite, I can see the data that I need. But if I try this below:</p>
  
  <pre><code>    if uri.port == 443
          response = Net::HTTP.start(uri.host, uri.port, :use_ssl =&gt; true, :verify_mode =&gt; OpenSSL::SSL::VERIFY_NONE) {|http|
              http.request(request)
          }
      else
          response = Net::HTTP.start(uri.host, uri.port) {|http|
              http.request(request)
          }
      end
  </code></pre>
  
  <p>then I get hex characters that looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/BGDSZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BGDSZ.png" alt="enter image description here"></a></p>
  
  <p>Any idea why this would be the case? Is it because of the specific SSL/TLS version used or something and the web application proxy knows how to interact with it but net/https doesn't? can't figure this out.</p>