Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RicardoBritoBrens/19fe3e4240d5b9f771ae1c536a2e98aa to your computer and use it in GitHub Desktop.
Save RicardoBritoBrens/19fe3e4240d5b9f771ae1c536a2e98aa to your computer and use it in GitHub Desktop.
WebApi web.config configuration when working behind a proxy
# WebApi web.config configuration when working behind a proxy
## Approach 1
```xml
<system.net>
<defaultProxy enabled="false"></defaultProxy>
</system.net>
```
## Approach 2
```xml
<system.net>
<defaultProxy enabled="true" useDefaultCredentials="true"></defaultProxy>
</system.net>
```
## Approach 3
```xml
<system.net>
<defaultProxy>
<proxy usesystemdefault="False" proxyaddress="http://10.100.10.99:8080" />
</defaultProxy>
</system.net>
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment