title: How to correctly use http.client.HTTPSConnection
body: <p>I am trying to use my model with my prediction API. I am getting an exception thrown and I believe its because of my connection. How do I correctly set up the request signature.</p>
  <pre><code> try:
          conn = http.client.HTTPSConnection('*.cognitiveservices.azure.com')
          conn.request(&quot;POST&quot;, &quot;/customvision/v3.0/Prediction/{projectId}/classify/iterations/{publishedName}/image?%s&quot; % params,  imageFilePath, headers)
          response = conn.getresponse()
          data = response.read()
          print(data)
          conn.close()
      except Exception as e:
          print(&quot;[Errno {0}] {1}&quot;.format(e.errno, e.strerror))
  </code></pre>