title: MSSQL Win HTTP 5.1 ignore certificate
body: <p>I'm trying to to create an https request from a stored procedure in MSSQL to a https website using WinHttpRequest 5.1. I have managed to create the request to a normal http website using OLE automation procedures (sp_OACreate, sp_OAMethod, etc..) but i need to set the WinHTTP object to ignore any certificate errors.</p>
  
  <p>WinHttp 5.1 itself supports this option but i do not know how to set it from MSSQL unfortunately</p>
  
  <p>Here is what i should do in MSSQL: </p>
  
  <pre><code>http.Option[WinHttpRequestOption_SslErrorIgnoreFlags] = SslErrorFlag_Ignore_All; 
  </code></pre>