How to use lantern proxy from mac terminal?
2017-02-27 18:27
633 查看
$ curl https://gist.github.com/wjwwood/4237236/raw/e357f1b9fa8b26d02ed84f411d5b5eb7446c68c5/pkg_config_fix.patch curl: (7) Failed to connect to gist.github.com port 443: Operation timed out$ curl --proxy 127.0.0.1:64145 https://gist.github.com/wjwwood/4237236/raw/e357f1b9fa8b26d02ed84f411d5b5eb7446c68c5/pkg_config_fix.patch works$ cat !$cat ~/.curlrcproxy = 127.0.0.1:64145 https://github.com/getlantern/lantern/issues/3341 You can make a alias in your ~/.bashrc file :
alias curl="curl -x <proxy_host>:<proxy_port>"Another solution is to use (maybe the better solution) the
~/.curlrcfile(create it if it does not exist) :
proxy = <proxy_host>:<proxy_port>http://stackoverflow.com/questions/7559103/how-to-setup-curl-to-permanently-use-a-proxy
相关文章推荐
- How to use Mac Terminal
- How to set network proxy for terminal in Ubuntu
- How to use an Outlook Object Model from Visual C++ by using a #import statement
- How to Work with the Network from the Linux Terminal
- [Guide] Mac OS X Lion: How To Boot A Linux Live System From An USB Drive & How To Update Any OCZ SSD
- How to use/install gcc on Mac OS X 10.8 / Xcode 4.4
- How to use GET and POST methods in HTTP from a MIDlet
- How to use virtual path providers to dynamically load and compile content from virtual paths in
- How to use Tower on Mac to control your local Xcode Projects
- How to use the PECL HTTP (PECL_HTTP) Extension to make HTTP requests from PHP
- How To Use Proxy Server To Access Internet at Shell Prompt With http_proxy Variable. [reprint]
- How to use http-proxy for svn
- How to Transfer Audio Output from Mac OS X to Ubuntu via a Network?
- How to Use Disk Utility to Erase a Macintosh Hard Drive
- How To Use An Embedded Resource From A Sub-Folder
- How to Transfer Audio Output from Mac OS X to Ubuntu via a Network?
- HOWTO Install Zabbix 1.4.2 from source (usefull for all systems)
- How to bind a GridView to a list of multiple types? NHibernate proxy causing problems with databinding [From stack overflow]
- How To use nginx proxy cache replace squid
- How to use SSH Via HTTP Proxy using Corkscrew in Ubuntu