gpt4 book ai didi

bash - “http_proxy”在 .curlrc 配置文件中有不受支持的尾随

转载 作者:行者123 更新时间:2023-11-29 09:46:29 32 4
gpt4 key购买 nike

url="http://saimei.acc.umu.se/debian-cd/8.5.0/i386/iso-cd/debian-8.5.0-i386-netinst.iso"wget -c $url -O/tmp/debian.iso

url="http://saimei.acc.umu.se/debian-cd/8.5.0/i386/iso-cd/debian-8.5.0-i386-netinst.iso"
curl -x "vps_ip:80" $url -o /tmp/netinst.iso

没有错误信息输出,现在我想在curl配置文件中写入http_proxy。

vim /root/.curlrc
http_proxy="http://vps_ip:80"

让我们开始 curl 。

curl  $url -o  /tmp/netinst.iso

Warning: /root/.curlrc:1: warning: 'http_proxy' had unsupported trailing
Warning: garbage

/root/.curlrc 有什么问题?

最佳答案

请尝试以下操作:

proxy=http://vps_ip:80

关于bash - “http_proxy”在 .curlrc 配置文件中有不受支持的尾随,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39307539/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com