본문 바로가기
Linux

Ubuntu - CURL Web Proxy setting

by 올엠 2020. 10. 23.
반응형

In a corporate network environment, a proxy server is often used. If you set up a proxy server in ubuntu’s some application, you’ll get a good network connection only that application,
So Any other http or https connection other application is still impossible.
Then, the following system wide proxy configuration is needed.

#export http_proxy=http://proxy_host:port
#export https_proxy=http://proxy_host:port

If that proxy need to login, you can use to command line below

#export http_proxy=http://user:pass@proxy_host:port
#export https_proxy=http://user:pass@proxy_host:port

If you want to keep your configuration system-wide, you can enter it in /etc/environment or /etc/profile.

 

CURL?

curl --proxy proxy_host:port asecurity.dev

반응형

'Linux' 카테고리의 다른 글

CentOS - Network Bonding Interface Configuration  (0) 2020.10.23
How to use 1-1024 port from application(not root)  (0) 2020.10.23
Linux environment vs profile  (0) 2020.10.23
Ansible - install on Mac  (0) 2020.10.22
swappiness - Linux Swap 조절  (0) 2020.10.22

댓글0