Page 3 of 3

Re: PB.Ex FTP (Windows)

Posted: Fri Sep 08, 2023 2:23 am
by GogaII
Hi RSBasic!
change, please, the link to PB.Ex_FTP.zip on your first message (on the first page) from http to https. Otherwise browsers are not happy of http, write different nonsense and don't allow downloading.

Re: PB.Ex FTP (Windows)

Posted: Fri Sep 08, 2023 8:41 am
by RSBasic
Thank you for the hint. I changed my download link.
Over the weekend I will also change the links of my other downloads.

Re: PB.Ex FTP (Windows)

Posted: Sat Sep 09, 2023 8:02 am
by GogaII
You're welcome!
I tried to use your ftp-library. I think it has a problem with working with some ftp-servers like FileZilla.
I checked the working of several famous FTP clients ( such as FileZilla, Total Commander, and WinSCP) with my FileZilla server, and they all worked perfectly. But I couldn't get access to the FTP server using your library. I investigated a log from my FileZilla server. The mistake upon using your library was "GnuTLS error -8: A packet with illegal or unsupported version was received." According to online, it means the FTP client tries to use a lower version than TSL v1.2
All the FTP clients I used above warned me that the FileZilla server used a self-signed certificate but they continued working. I don't know how it affects the server response, but I just report it. If you are interested in investigating the problem, I can give you access to my FTP server.

Re: PB.Ex FTP (Windows)

Posted: Sat Sep 09, 2023 1:19 pm
by RSBasic
GogaII wrote: Sat Sep 09, 2023 8:02 am You're welcome!
I tried to use your ftp-library. I think it has a problem with working with some ftp-servers like FileZilla.
I checked the working of several famous FTP clients ( such as FileZilla, Total Commander, and WinSCP) with my FileZilla server, and they all worked perfectly. But I couldn't get access to the FTP server using your library. I investigated a log from my FileZilla server. The mistake upon using your library was "GnuTLS error -8: A packet with illegal or unsupported version was received." According to online, it means the FTP client tries to use a lower version than TSL v1.2
All the FTP clients I used above warned me that the FileZilla server used a self-signed certificate but they continued working. I don't know how it affects the server response, but I just report it. If you are interested in investigating the problem, I can give you access to my FTP server.
That would be helpful if you could set up test access for me.

Re: PB.Ex FTP (Windows)

Posted: Sun Sep 10, 2023 2:26 am
by GogaII
RSBasic wrote: Sat Sep 09, 2023 1:19 pm That would be helpful if you could set up test access for me.
I've sent a private message to you.

Re: PB.Ex FTP (Windows)

Posted: Sun Sep 10, 2023 10:16 am
by RSBasic
GogaII wrote: Sun Sep 10, 2023 2:26 am
RSBasic wrote: Sat Sep 09, 2023 1:19 pm That would be helpful if you could set up test access for me.
I've sent a private message to you.
Thank you, I'll test it today.

Re: PB.Ex FTP (Windows)

Posted: Sun Sep 10, 2023 9:23 pm
by RSBasic
PB.Ex FTP 1.0.7.0 has been released.

Changelog:
  • Updated: .NET Framework 4.7.2 > .NET Framework 4.8 (required for TLS 1.3)
  • Added: TLS 1.3 support
Important note: Due to the new version of the .NET library, asynchronous downloading and uploading no longer works. I'll have to fix it later.


GogaII wrote: Sat Sep 09, 2023 8:02 am You're welcome!
I tried to use your ftp-library. I think it has a problem with working with some ftp-servers like FileZilla.
I checked the working of several famous FTP clients ( such as FileZilla, Total Commander, and WinSCP) with my FileZilla server, and they all worked perfectly. But I couldn't get access to the FTP server using your library. I investigated a log from my FileZilla server. The mistake upon using your library was "GnuTLS error -8: A packet with illegal or unsupported version was received." According to online, it means the FTP client tries to use a lower version than TSL v1.2
All the FTP clients I used above warned me that the FileZilla server used a self-signed certificate but they continued working. I don't know how it affects the server response, but I just report it. If you are interested in investigating the problem, I can give you access to my FTP server.
Thank you for the test access. With this version it works.

Re: PB.Ex FTP (Windows)

Posted: Mon Sep 11, 2023 1:48 am
by GogaII
RSBasic wrote: Sun Sep 10, 2023 9:23 pm Thank you for the test access. With this version it works.
Great! Thank you too!

Re: PB.Ex FTP (Windows)

Posted: Tue Sep 19, 2023 2:02 pm
by GogaII
Hi RSBasic,
I think the function FTPProgressEx() doesn't work correctly.
To check it I even used your examples from the archive and I've always received 0.
Except my coding I also used this code from the archive:

Code: Select all

....

Define ErrorOutput$ = Space(128)
Define FileName$ = Space(#MAX_PATH)

Debug "SFTP..."

If OpenFTPEx(1, #PBEx_FTP_Protocol_SFTP, "test.rebex.net", 22, "demo", "password", #PB_UTF8, @ErrorOutput$)
  ;If OpenFTPEx(1, #PBEx_FTP_Protocol_SFTP, "demo.wftpserver.com", 2222, "demo-user", "demo-user", #PB_UTF8, @ErrorOutput$)
  SetFTPDirectoryEx(1, "pub", @ErrorOutput$)
  SetFTPDirectoryEx(1, "example", @ErrorOutput$)
  ;SetFTPDirectoryEx(1, "download", @ErrorOutput$)
  ;SetFTPDirectoryEx(1, "upload", @ErrorOutput$)
  
  If ExamineFTPDirectoryEx(1, @ErrorOutput$)
    While NextFTPDirectoryEntryEx(1, @ErrorOutput$)
      FTPDirectoryEntryNameEx(1, @FileName$, @ErrorOutput$)
      Debug FileName$
    Wend
    
  EndIf
  
  Define a
  Define PercentValue = 0
  Define TransferRate = 0
  Define EstimatedTime = 0
  
  ReceiveFTPFileEx(1, "wftpserver-linux-64bit.tar.gz", "D:\aa.gz", 1, @ErrorOutput$)
  
  For a=1 To 100
    FTPProgressEx(1, @PercentValue, @TransferRate, @EstimatedTime, @ErrorOutput$)
    Debug PercentValue ; <<<<<<<<<< always = 0 
    Debug TransferRate  ; <<<<<<<<<< always = 0 
    Debug EstimatedTime  ; <<<<<<<<<< always = 0 
    Debug "--------"
    Delay(100)
  Next
  
  Delay(10000)
  
  CloseFTPEx(1, @ErrorOutput$)
Else
  Debug ErrorOutput$
EndIf
Could you have a look at it when you have free time?
P.S. The link to download the archive from the first page still doesn't work correctly. Browsers can't finish this operation.

Re: PB.Ex FTP (Windows)

Posted: Tue Sep 19, 2023 3:51 pm
by RSBasic
RSBasic wrote: Sun Sep 10, 2023 9:23 pm Important note: Due to the new version of the .NET library, asynchronous downloading and uploading no longer works. I'll have to fix it later.
Please use the previous version.

Re: PB.Ex FTP (Windows)

Posted: Wed Sep 20, 2023 1:49 pm
by GogaII
Sorry. I've missed this warning (
Ok, I'll look forward to a fix.

Re: PB.Ex FTP (Windows)

Posted: Tue Oct 31, 2023 8:15 am
by GogaII
RSBasic wrote: Sun Sep 10, 2023 9:23 pm Please use the previous version.
- It's impossible to use version Dll library v. 1.0.6.0 because it doesn't work with FTP servers with TSL 1.2 or higher

In addition I'd like to add some points which I found.
- there is confusion with the value @ErrorOutput and @ErrorOutput$ in the description on the first page. If you ignore it, you will receive a hard-to-diagnose error in the code with many lines (of course, if you don't use EnableExplicit)
-OpenFTPEx() "misses" "0.0.0.0" as a ftp address.

If you need FTP server for test I"ll provide it to you as long as you need.

Re: PB.Ex FTP (Windows)

Posted: Sun Aug 11, 2024 4:15 pm
by RSBasic
Since SFTP is supported in the current PB beta version, this library is no longer needed and development is discontinued.

Re: PB.Ex FTP (Windows)

Posted: Sun Aug 11, 2024 7:42 pm
by Kiffi
Although I have not used PB.Ex FTP, thank you for your great support!

Greetings ... Kiffi