A difference in curl behavior between RHEL7 and RHEL8

Solution Verified - Updated -

Issue

  • 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
    

Environment

  • Red Hat Enterprise Linux 8
    • curl-7.61.1
  • Red Hat Enterprise Linux 7
    • curl-7.29.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In