Several tricks for curl to download files (including redirect URLs)

1. Download the basic file

    

#After downloading, the file name takes the name of the url
curl -O url

2. After downloading, rename

curl -o newname url

 3. If the URL has a jump, add -L

curl -L url

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326646519&siteId=291194637