简体   繁体   English

bash http代理用户名密码

[英]bash http proxy username password

How to make bash http proxy work if there is @ in password string. 如果密码字符串中有@,如何使bash http代理工作。

export http_proxy='http://jdoe:P@ssw0rd@proxyserver:8080' . export http_proxy='http://jdoe:P@ssw0rd@proxyserver:8080'

I am getting curl: (5) Couldn't resolve proxy 'ssword@proxyserver' for the next curl command. 我正在curl: (5) Couldn't resolve proxy 'ssword@proxyserver'为下一个curl命令curl: (5) Couldn't resolve proxy 'ssword@proxyserver' Please advise. 请指教。

You need to URL-encode special characters. 您需要对特殊字符进行URL编码。 @ is %40 @%40

export http_proxy='http://jdoe:P%40ssw0rd@proxyserver:8080'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM