title: Mostly Failing HTTPWebRequest over SSL in Azure - The Underlying Connection was Closed
body: <p>So having a strange issue in Azure that we could use some assistance on.  We've taken the liberty of isolating it down to an HTTPWebRequest (POST - GET works fine) over SSL.  This particular request to our client works reliably on any computer, however, the moment we spin up an Azure VM and run it, it fails 90-95% of the time.  The fact that it works is what makes this so difficult.</p>
  
  <p>One thing that makes this even more odd, is that this same request, in Azure works 100% of the time once proxied by Fiddler.  Installed Fiddler to help debug and was unable to reproduce the issue.  Exit Fiddler and the problem shows up once again.</p>
  
  <p>Most likely something to do with SSL, however, the fact that it worked at all is what has me completely baffled.  We've been able to capture a successful tracelog and a failed tracelog from the Azure VM.</p>
  
  <blockquote>
    <p>The underlying connection was closed: The connection was closed
    unexpectedly..</p>
  </blockquote>
  
  <p>Another factor is that the client utilizes a product called DataPower, but uncertain if that is just extra noise in this thread.</p>