Skip to content

Commit cf6016d

Browse files
authored
Merge pull request #429 from watson-developer-cloud/doc-proxy
Doc proxy
2 parents 4c0369a + 1a280d4 commit cf6016d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The .NET Standard SDK uses [Watson][wdc] services, a collection of REST APIs tha
1818
* [Self signed certificates](#self-signed-certificates)
1919
* [Discovery V2](#discovery-v2)
2020
* [Transaction IDs](#transactio-ids)
21+
* [Use behind a proxy](#use-behind-a-proxy)
2122
* [Documentation](#documentation)
2223
* [Questions](#questions)
2324
* [Open Source @ IBM](#open-source--ibm)
@@ -247,6 +248,18 @@ catch(Exception e)
247248
}
248249
```
249250

251+
## Use behind a proxy
252+
To use the SDK behind an HTTP proxy, you need to set either the `http_proxy` or `https_proxy` environment variable.
253+
You can set this in the application environment using:
254+
```
255+
set http_proxy=http://proxy.server.com:3128
256+
```
257+
from the cmd.
258+
259+
You can also set this in the application using:
260+
```cs
261+
Environment.SetEnvironmentVariable("http_proxy", "http://proxy.server.com:3128");
262+
```
250263

251264
## Documentation
252265
Click [here][dotnet-standard-sdk-documentation] for documentation by release and branch.

0 commit comments

Comments
 (0)