cURL: how do I save a file using the response header filename with cURL

This question relates to the command line version of cURL. I’m trying to download a file from a cgi script.http://someserver/perl/dl.pl?ID=2Using a browser the filename comes up as

  • curl –remote-header-name …
  • wget –content-disposition …

Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.