WGET一个Redmine CSV文件

时间:2017-04-04 14:19:46

标签: wget redmine

我正在尝试从shell脚本中获取Redmine的CSV文件。 WGET抱怨不可接受。任何想法是什么神奇的咒语,或如何找到它?

$ wget --no-check-certificate --accept csv https://username:password@company.com/redmine/issues.csv?utf8=%E2%9C%93&columns=all&description=1
Resolving company.com (company.com)... 192.168.1.45
Connecting to company.com (company.com)|192.168.1.45|:443... connected.
WARNING: The certificate of ‘company.com’ is not trusted.
WARNING: The certificate of ‘company.com’ hasn't got a known issuer.
HTTP request sent, awaiting response... 406 Not Acceptable
2017-04-04 10:14:20 ERROR 406: Not Acceptable.

1 个答案:

答案 0 :(得分:0)

你可以尝试用--accept" * .csv"替换--accept csv。请参阅wget手册:https://www.gnu.org/software/wget/manual/wget.html#Recursive-Accept_002fReject-Options