Created
June 15, 2020 14:28
-
-
Save jieniu/8c8c5ea45a971ade8efd2f85a209e070 to your computer and use it in GitHub Desktop.
curl proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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