title: ActiveX Control will not POST to a URL in IE9 using SSL on some machines
body: <p>I have an issue going on and no tangible error information to go off of, but I have pinpointed the failure spot. I have an ActiveX Control that takes a locally saved word .doc file and then POSTs it to another URL.</p>
  
  <pre><code>  Dim WebBrowser: Set WebBrowser = CreateObject("InternetExplorer.Application")
  
    'You can uncoment next line to see form results
    'WebBrowser.Visible = True
  
    'Send the form data to URL as POST request
    Dim bFormData() As Byte
    ReDim bFormData(Len(FormData) - 1)
    bFormData = StrConv(FormData, vbFromUnicode)
  
    WebBrowser.Navigate URL, , , bFormData, _
      "Content-Type: multipart/form-data; boundary=" + Boundary + vbCrLf
  
    Do While WebBrowser.busy
  '    Sleep 100
      DoEvents
    Loop
    WebBrowser.Quit
  </code></pre>
  
  <p>The word doc exists in the user's <code>C:\Users\[username]\AppData\Local\Temp\</code> so that is not the issue; the file <em>does</em> exist.</p>
  
  <p>The environment with the web app that contains this ActiveX control is <strong>IE9</strong> and the site is hosted in IIS <strong>with a SSL cert</strong>.</p>
  
  <p>Also it works <strong>all the time</strong> in these conditions:</p>
  
  <ul>
  <li>IE7 <strong>with</strong> SSL</li>
  <li>IE8 <strong>with</strong> SSL</li>
  <li>IE9 <strong>without</strong> SSL</li>
  </ul>
  
  <p>Works <em>on only some machines</em> with these conditions which is the required environment:</p>
  
  <ul>
  <li>IE9 with SSL</li>
  </ul>
  
  <p>On some machines it works, on others it does not. There is no error we can find from the ActiveX Control. We can verify on the site on the server when the POST works because there is logging to receive the file. In conditions where it does not work, the POST never successfully occurs on the server and the URL to accept the file is never called.</p>
  
  <p>This tells me the ActiveX control is having issue on some machines making the POST with the file, and is probably a security setting in IE9. However we have compared <em>all</em> of the IE settings across working and non-working machines and cannot find any descrepancies.</p>
  
  <p>Does anyone know what security restriction could prevent this locally saved file in the user's temp directory to not successfully be picked up and uploaded via a POST to a URL? Once again it works with IE7 and IE8 with SSL and in IE9 with no SSL. However it is sporradic working in IE9 <em>with</em> SSL.</p>