PB.Ex FTP (Windows)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
GogaII
User
User
Posts: 29
Joined: Sun Nov 15, 2020 10:03 am

Re: PB.Ex FTP (Windows)

Post 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.
User avatar
RSBasic
Moderator
Moderator
Posts: 1228
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: PB.Ex FTP (Windows)

Post 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.
Image
Image
GogaII
User
User
Posts: 29
Joined: Sun Nov 15, 2020 10:03 am

Re: PB.Ex FTP (Windows)

Post 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.
User avatar
RSBasic
Moderator
Moderator
Posts: 1228
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: PB.Ex FTP (Windows)

Post 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.
Image
Image
GogaII
User
User
Posts: 29
Joined: Sun Nov 15, 2020 10:03 am

Re: PB.Ex FTP (Windows)

Post 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.
User avatar
RSBasic
Moderator
Moderator
Posts: 1228
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: PB.Ex FTP (Windows)

Post 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.
Image
Image
User avatar
RSBasic
Moderator
Moderator
Posts: 1228
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: PB.Ex FTP (Windows)

Post 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.
Image
Image
GogaII
User
User
Posts: 29
Joined: Sun Nov 15, 2020 10:03 am

Re: PB.Ex FTP (Windows)

Post 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!
GogaII
User
User
Posts: 29
Joined: Sun Nov 15, 2020 10:03 am

Re: PB.Ex FTP (Windows)

Post 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.
User avatar
RSBasic
Moderator
Moderator
Posts: 1228
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: PB.Ex FTP (Windows)

Post 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.
Image
Image
GogaII
User
User
Posts: 29
Joined: Sun Nov 15, 2020 10:03 am

Re: PB.Ex FTP (Windows)

Post by GogaII »

Sorry. I've missed this warning (
Ok, I'll look forward to a fix.
GogaII
User
User
Posts: 29
Joined: Sun Nov 15, 2020 10:03 am

Re: PB.Ex FTP (Windows)

Post 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.
User avatar
RSBasic
Moderator
Moderator
Posts: 1228
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: PB.Ex FTP (Windows)

Post by RSBasic »

Since SFTP is supported in the current PB beta version, this library is no longer needed and development is discontinued.
Image
Image
User avatar
Kiffi
Addict
Addict
Posts: 1485
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: PB.Ex FTP (Windows)

Post by Kiffi »

Although I have not used PB.Ex FTP, thank you for your great support!

Greetings ... Kiffi
Hygge
Post Reply