From this post we know that

There are two common modes for transferring files via FTP, ascii and binary

It is about media connection. But also there is a control connection, which has some info like IP addresses and so on.
Does the info inside control connection have binary or textual format?

  • Have you researched the relevant RFCs which define the FTP protocol? – user1686 Mar 24 '20 at 21:05
  • @user1686 I'm currently researching it but can't still figure out things. – z0lupka Mar 24 '20 at 21:05
  • 1
    Short answer: text – DavidPostill Mar 24 '20 at 21:07
  • @DavidPostill Thank you so much! – z0lupka Mar 24 '20 at 21:09

The FTP control connection is text. It's mostly 4-character all-caps command mnemonics and occasional IP addresses (in dotted-decimal ASCII) and port numbers (in ASCII numerals). And of course path and file names in text.

  • 1
    It's not just that it's text – but it's also specifically defined to be NVT-ASCII text with CRLF line endings, so it's exactly the same as "ASCII" data transfer mode. – user1686 Mar 25 '20 at 8:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.