Httpwebrequest and Fiddler

fiddler, https, httpwebrequest

Solution

Just found the solution for my identical? problem on another thread:

Why does the performance of the HttpWebRequest object improve while using Fiddler?

Adding the following to app.config has my app running happily:

  <system.net>
    <connectionManagement>
      <add address="*" maxconnection="30" />
    </connectionManagement>
  </system.net>

So this makes me think that I am missing some house cleaning in my code and open connections are not getting closed.

Problem

I have setup a `HttpWebRequest` using HTTPS and the code is working fine when Fiddler is running. When Fiddler isn't running - I get a "request timeout" error. Does anyone have any ideas what would be the cause? I have a) Ensured that security policy exists as per ``` if (this.IngoreCertificateErrors) ServicePointManager.ServerCertificateValidationCallback += delegate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; }; ``` b) I have also ensure no firewall conflicts etc What else can I try? Edit: Just to be clear - my app basically logins to a website to get a report. On steps 1-3) login, get urls for login and report. Step 4) once logged in - get report. The problem I have is that Step 4) ONLY works with fiddler ?

Original source

Related problems