title: Sending Request using HTTPS in C++
body: <p>My C++ application consists of posting out through an HTTP connection directly to the Weblogic App server. Need to change it to post using HTTPS. </p>
  
  <p>*<em>Im running this application through Visual Studio. *</em></p>
  
  <p>Any kind of suggestions are welcome.  Coding updates are most helpful</p>
  
  <p>The below is the code i have for HTTP connectivity works fine.</p>
  
  <p><strong>What i need to do it to work with HTTPS?</strong></p>
  
  <pre><code>      strFormData = sFile;
  
  strHeaders  = _T("Content-Type: application/x-www-form-urlencoded");
  
  CInternetSession session;
  CHttpConnection* pConnection =  session.GetHttpConnection(_T(Server), Port);
  
  CHttpFile* pFile =  pConnection-&gt;OpenRequest(CHttpConnection::HTTP_VERB_POST,   _T(Action));                
  
  result = pFile-&gt;SendRequest(strHeaders,(LPVOID)(LPCTSTR)strFormData,  
                                            Data.GetLength());
  </code></pre>