Tech FAQs: Using curl to fetch from a URL which outputs a dynamically generated Excel file | Code it | Scoop.it
We often come across this case where another company provides us with a url which we can  use via a browser to get an excel or pdf report. 
 
Usually it also accepts one or more parameters, which are used by the backend script in the report generation process.
 
How does one call this via CURL to allow our application to fetch the reports automatically  based on some pre defined schedule, or in a bulk fashion for a set of running parameters.