Skip to content

Commit

Permalink
Merge pull request #610 from inejge/readme-proxy
Browse files Browse the repository at this point in the history
Add HTTP proxy documentation to README
  • Loading branch information
brson authored Jul 22, 2016
2 parents 5394c48 + 172442d commit ff82309
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,31 @@ is invoked for a custom toolchain and it is not available, `rustup`
will attempt to use `cargo` from one of the release channels*,
preferring 'nightly', then 'beta' or 'stable'.

## Working with HTTP proxies

Enterprise networks often don't have direct outside HTTP access, but enforce
the use of HTTP proxies. If you're on such a network, you can request that
rustup uses a proxy by setting its URL in the environment. In most cases,
setting `http_proxy` should be sufficient. On a Unix-like system with a
shell like __bash__ or __zsh__, you could use:

```
export http_proxy=http://proxy.example.com:8080
```

On Windows, the command would be:

```
set http_proxy=http://proxy.example.com:8080
```

If you need a more complex setup, rustup supports the convention used by
the __curl__ program, documented in the ENVIRONMENT section of
[its manual page][curlman].

[curlman]: https://curl.haxx.se/docs/manpage.html


## Examples


Expand Down

0 comments on commit ff82309

Please sign in to comment.