使用curl从没有文件扩展名的url下载图像

1 curl

我想将图像下载到

https://lorempixel.com/1280/320/nature/1/
Run Code Online (Sandbox Code Playgroud)

curl

curl https://www.python.org/static/apple-touch-icon-144x144-precomposed.png > image.png 工作 正常!(来自/sf/ask/2263151621/

问题https://lorempixel.com/1280/320/nature/1/是它没有文件扩展名,例如.jpg.png

尝试

  1. curl https://lorempixel.com/1280/320/nature/1 > test.jpg

    测试.jpg

  2. curl -O https://lorempixel.com/1280/320/nature/1/

    ...远程文件名没有长度!...

  3. curl -O https://lorempixel.com/1280/320/nature/1/ > test.jpg

    ...远程文件名没有长度!...

并尝试curl -Ov(详细)和其他尝试但没有成功。

有可能吗curl

Gil*_*not 5

$ curl -o x.jpg  https://lorempixel.com/1280/320/nature/1/ 
$ file x.jpg
x.jpg: JPEG image data, JFIF standard 1.01, resolution (DPI), density 96x96, segment length 16, comment: "CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 70", baseline, precision 8, 1280x320, frames 3
Run Code Online (Sandbox Code Playgroud)