You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The LF line ending code is expected to be converted to CRLF before transmission and then converted to the appropriate line ending code on the server side.
However, curl sends LF as is in netascii mode, so it cannot convert the line ending code.
Three modes of transfer are currently supported: netascii (This is ascii as defined in "USA Standard Code for Information Interchange" [1] with the modifications specified in "Telnet Protocol Specification" [3].)
The sequence "CR LF", as defined, will cause the NVT to be
positioned at the left margin of the next print line (as would,
for example, the sequence "LF CR"). However, many systems and
terminals do not treat CR and LF independently, and will have to
go to some effort to simulate their effect. (For example, some
terminals do not have a CR independent of the LF, but on such
terminals it may be possible to simulate a CR by backspacing.)
Therefore, the sequence "CR LF" must be treated as a single "new
line" character and used whenever their combined action is
intended; the sequence "CR NUL" must be used where a carriage
return alone is actually desired; and the CR character must be
avoided in other contexts. This rule gives assurance to systems
which must decide whether to perform a "new line" function or a
multiple-backspace that the TELNET stream contains a character
following a CR that will allow a rational decision.
curl/libcurl version
$ LD_LIBRARY_PATH=/usr/local/lib curl --version
curl 8.6.0-DEV (x86_64-pc-linux-gnu) libcurl/8.6.0-DEV
Release-Date: [unreleased]
Protocols: dict file ftp gopher http imap ipfs ipns mqtt pop3 rtsp smtp telnet tftp
Features: alt-svc AsynchDNS IPv6 Largefile threadsafe UnixSockets
$ git log --oneline -1
8edcfedc1 (HEAD -> master, origin/master, origin/HEAD, master) ftp: use memdup0 to store the OS from a SYST 215 response
operating system
Ubuntu 22.04 LTS
The text was updated successfully, but these errors were encountered:
I did this
I expected the following
The LF line ending code is expected to be converted to CRLF before transmission and then converted to the appropriate line ending code on the server side.
However, curl sends LF as is in netascii mode, so it cannot convert the line ending code.
RFC 1350
RFC 854
curl/libcurl version
operating system
Ubuntu 22.04 LTS
The text was updated successfully, but these errors were encountered: