Wget自动从Jira下载excel [英] Wget to download excel from Jira automatically
问题描述
我尝试了以下命令从jira自动获取excel文件,但除过滤器数据外,我得到的数据也不同.
I have tried the below commands to get the excel file automatically from jira but I'm getting different data other than the filter data.
wget --user用户名--password pass -O test.xls --ignore-length = on
wget --user username--password pass -O test.xls --ignore-length=on http://esjirq62.emea.nsn-net.net:8080/sr/jira.issueviews:searchrequest-excel-all-fields/70920/SearchRequest-70920.xls?tempMax=1000;
卷曲-D my-output.xml -u升级:hjjKl801 -X GET -H内容类型:应用程序/json"
curl -D my-output.xml -u upgrade:hjjKl801 -X GET -H "Content-Type: application/json" http://esjirq62.emea.nsn-net.net:8080/sr/jira.issueviews:searchrequest-excel-all-fields/70920/SearchRequest-70920.xls?tempMax=1000
请在这里帮助我.
推荐答案
您必须设置正确的编码标头 gzip :
You have to set correct encoding header gzip :
curl -D my-output.xml -u upgrade:secret -X GET -H "Content-Type: application/json" -H "Accept-Encoding: gzip" "http://esjirq62.emea.nsn-net.net:8080/sr/jira.issueviews:searchrequest-excel-all-fields/70920/SearchRequest-70920.xls?tempMax=1000"
一些注意事项:
- 从您的示例中删除密码
- -D 标志用于卷曲转储标头,而不输出.您是不是说 -o ? 可以跳过
- Content-Type 标头
- 为了安全起见,请将网址用双引号引起来
- 您可以使用开发人员从Google Chrome 复制请求工具
- Remove password from your example
- -D flag for curl dumps headers, not output. Did you mean -o maybe?
- Content-Type header can be skipped
- To be on the safe side, put the url in double quotes
- You can copy request from Google Chrome using developer tools
这篇关于Wget自动从Jira下载excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!