https://access.redhat.com/solutions/4174711
SOLUTION 已验证 - 已更新 星期一 在 8:00 PM -
环境
- Red Hat Enterprise Linux 8
- curl-7.61.1
- Red Hat Enterprise Linux 7
- curl-7.29.0
问题
- There is a difference in curl behavior between RHEL7 and RHEL8.
-
curl in RHEL7 can not get 0-byte size file from FTP server.
$ curl -sN -u testuser:passw0rd -O "ftp://ftp-server//zero_byte_file.txt" $ echo $? 0 $ ls zero_byte_file.txt
决议
It was changed to create files regardless of data size from curl-7.40.0.

本文探讨了Red Hat Enterprise Linux (RHEL) 7和RHEL 8中curl行为的不同,特别是在从FTP服务器获取0字节大小文件时的表现。在RHEL 7中,curl无法正确下载此类文件,而这一问题在RHEL 8及curl 7.40.0版本后得到了解决,确保了无论文件大小如何都能创建文件。
9万+

被折叠的 条评论
为什么被折叠?



