Re: get only the first line without download the whole file?
You can handle
https://winscp.net/eng/docs/library_session_filetransferprogress
https://winscp.net/eng/docs/library_filetransferprogresseventargs
A request for streaming interface is tracked here:
https://winscp.net/tracker/1738
Session.FileTransferProgress
event and set FileTransferProgressEventArgs.Cancel
to abort the transfer once you download sufficient data.
https://winscp.net/eng/docs/library_session_filetransferprogress
https://winscp.net/eng/docs/library_filetransferprogresseventargs
A request for streaming interface is tracked here:
https://winscp.net/tracker/1738