Skip to content

Instantly share code, notes, and snippets.

@jieniu
Created June 15, 2020 14:28
Show Gist options
  • Save jieniu/8c8c5ea45a971ade8efd2f85a209e070 to your computer and use it in GitHub Desktop.
Save jieniu/8c8c5ea45a971ade8efd2f85a209e070 to your computer and use it in GitHub Desktop.
curl proxy
1. You can make a alias in your ~/.bashrc file :
alias curl="curl -x <proxy_host>:<proxy_port>"
2. Another solution is to use (maybe the better solution) the ~/.curlrc file (create it if it does not exist) :
```
proxy = <proxy_host>:<proxy_port>
```
e.g.
```
socks5 = "socks5://127.0.0.1:10808"
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment