【发布时间】:2019-03-08 18:07:20
【问题描述】:
我正在尝试使用 curl 抓取生成的图像,但是当我运行时
curl https://thispersondoesnotexist.com/ > image.jpg
我得到了错误
curl: (92) HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)
并下载 0 个字节。
添加 --http1.1 标志没有帮助:
curl --http1.1 https://thispersondoesnotexist.com > imagex.jpg
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (52) Empty reply from server
查看该站点,我无法弄清楚它实际上是如何将图像传输到浏览器的 - 我在调试器中看到它,但它似乎不是我可以实际编写的输出。
我不是想经营一个巨魔农场或任何东西,这只是一个为面部分析生成一些随机图片的项目。
【问题讨论】: