title: Make a HTTPS request through PHP and get response
body: <p>I want to make HTTPS request through PHP to a server and get the response.</p>
  
  <p>something similar to this ruby code</p>
  
  <pre><code>  http = Net::HTTP.new("www.example.com", 443)
  
    http.use_ssl = true
  
    path = "uri"
  
    resp, data = http.get(path, nil)
  </code></pre>
  
  <p>Thanks</p>