title: Use curl to download excel file
body: <p>I have been given access to a url which I can happily use in a browser. It accepts a number of parameter, it sticks some of these parameters in an excel file and it dumps to my downloads directory an excel file without further intervention from the user.</p>
  
  <p>I'd like to do all this through curl. </p>
  
  <p>Is it possible?</p>
  
  <p>The url looks something like this:</p>
  
  <p><a href="http://somesite.com/export?type=xlsx&amp;object=container&amp;reporttype=type01&amp;id=11887&amp;user=root" rel="nofollow noreferrer">http://somesite.com/export?type=xlsx&amp;object=container&amp;reporttype=type01&amp;id=11887&amp;user=root</a></p>
  
  <p>I'd like to maintain the name of the downloaded xlsx file as it gets constructed by the server.</p>
  
  <p>Thanks for any help,</p>
  
  <p>Joe</p>