How do I save a file using the response header filename with cURL?

后端 未结 4 1909
不思量自难忘°
不思量自难忘° 2020-12-08 01:59

This question relates to the command line version of cURL.

I\'m trying to download a file from a CGI script.

http://example.com/perl/dl.pl?ID=2
         


        
4条回答
  •  爱一瞬间的悲伤
    2020-12-08 02:23

    curl http://example.com/dl.php?file=3123123 -O -J
    

    if server uses redirection use these:

    --location-trusted
    --max-redirs 10
    

提交回复
热议问题