Wget自动从Jira下载excel [英] Wget to download excel from Jira automatically

查看:114
本文介绍了Wget自动从Jira下载excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了以下命令从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"

一些注意事项:

  • 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆