binma85 发表于 2013-1-19 04:06:36

wget 'Bad port number' 问题解决

类似下面的wget语句会抛出“Bad port number”的异常

wget -c https://robbot.word@topsony.com:top@www.smb.com/retailer-export/get/type/product/tag/all_products

解决办法:
用户名和密码都带有@号,两个@号导致url字符串不能正常解析,所以需要将其转义。
在这里,只需要将第一个@转为%40可以解决问题。
页: [1]
查看完整版本: wget 'Bad port number' 问题解决