views:

16

answers:

1

I'm trying to pull a report down using the following:

https://user:[email protected]/ReportServer?%2fFolder+1%2fReportName&rs:Format=CSV&rs:Command=Render

And it just pulls an html page and not the csv file. Any ideas?

A: 

What does the HTML file say? Something like "acess denied"? And while you're at it, try

wget --user bob --password 123456 'https://domain.com/ReportServer?%2fFolder+1%2fReportName&rs:Format=CSV&rs:Command=Render'

Make sure you are using quotes. Otherwise, the shell will cut off the command before the first ampersand.

phihag
--content-disposition can only make it worse. Also, don't forget https:// at the beginning at the URL. It shouldn't, but sometimes does make a difference. 401 Unauthorized means your password is wrong. Are you absolutely sure that the password is correct? When you enter the URL in your browser, does the page show up after a username/password dialog?
phihag