Getting through Proxy Servers in C#

I am using the DLLs found in this thread. I need to be able to get around a proxy server in C#. Using the provided DLLs, how do I get through the proxy server using?

Hi Dan,

This isn't really related to those DLLs. This is something you can configure at the application level in your App.config file. I do this occasionally when I want to send my API requests through Charles (charlesproxy.com) for debugging purposes. In your App.config file you would need something like this...

  <system.net>
    <defaultProxy>
      <proxy
        proxyaddress="http://127.0.0.1:8888"
        bypassonlocal="true"
      />
    </defaultProxy>
  </system.net>

Note - there may be other ways to sent through a proxy, I don't consider myself to be an expert with .NET/C#

Hope that helps.

-Sean

Reply

Must be logged in to comment. now to comment!