Jump to content
We've recently updated our Privacy Statement, available here ×

wget and download from reports


nice2cu

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

i get only an login.html;jsessionid=5C9CE1BF55E507ECF15A454CB208E591 file.

I look inside this file and it is the Loginsite rom Jasperserver. :-(

I also try it with

--http-user=username
--http-password=userpw

I use the same statement in firefox and get the PDF.

 

Link to comment
Share on other sites

Put some quotes around the URL with parameters. Here is what I got:

 

C:\Program Files\GnuWin32\bin>wget "http://radar:8080/jasperserver//flow.html?_flowId=viewReportFlow&reportUnit=/reports/samples/AllAccounts&output=pdf&j_username=jasperadmin&j_password=jasperadmin"
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = C:\Program Files\GnuWin32/etc/wgetrc
--2009-10-13 13:40:18--  http://radar:8080/jasperserver//flow.html?_flowId=viewReportFlow&reportUnit=/reports/samples/AllAccounts&output=pdf&j_username=jasperad
min&j_password=jasperadmin
Resolving radar... 172.17.5.105
Connecting to radar|172.17.5.105|:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1264688 (1.2M) [application/pdf]
Saving to: `flow.html@_flowId=viewReportFlow&reportUnit=%2Freports%2Fsamples%2FAllAccounts&output=pdf&j_username=jasperadmin&j_password=jasperadmin'

100%[======================================>] 1,264,688   51.6K/s   in 24s

2009-10-13 13:40:52 (51.6 KB/s) - `flow.html@_flowId=viewReportFlow&reportUnit=%
2Freports%2Fsamples%2FAllAccounts&output=pdf&j_username=jasperadmin&j_password=j
asperadmin' saved [1264688/1264688]

 

 

Sherman
Jaspersoft

Link to comment
Share on other sites

  • 1 year later...

Thank you for this example! I was able to get this to work for my reports that do not have any parameters, but I have not figured out how to make it work with parameters. Any ideas on how to add parameters to this command?

EDIT: Nevermind...I found what I was looking for elsewhere in this forum by searching for information about using direct URLs to run reports.  Parameters go in the URL like you would expect...but you have to uncheck the "Always prompt" check box for your input controls.



Post Edited by southeea at 10/20/2010 15:38
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...