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可以解决问题。
发布时间: 2012-07-15 20:11:38 作者: rapoo
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