Page 2 of 2

Re: OpenFTP not work on 6.21

Posted: Sat Sep 13, 2025 10:41 am
by infratec
This looks strange.
It is not FTP, it's HTTP.

Re: OpenFTP not work on 6.21

Posted: Sat Sep 13, 2025 10:44 am
by Fred
Seems like we need to force the protocol in libcurl if the 'ftp://' is not specified.

Could you try like this ?

Code: Select all

serveur.s = "ftp://ftpperso.free.fr" ; - Force ftp://
user.s = "mylogin"
pw.s = "mypassword"
port.i = 21

If OpenFTP(0, serveur, user, pw, #PB_FTP_Passive | #PB_FTP_Debug, port)
  Debug "Open"
  
  If ExamineFTPDirectory(0)
    While NextFTPDirectoryEntry(0)
      Debug FTPDirectoryEntryName(0)
    Wend
    FinishFTPDirectory(0)
  EndIf
  
  CloseFTP(0)
Else
  Debug "Not open"
EndIf



Re: OpenFTP not work on 6.21

Posted: Sat Sep 13, 2025 10:47 am
by Fred
Also could you paste your libcurl code which works so I can compare ?

Re: OpenFTP not work on 6.21

Posted: Sat Sep 13, 2025 10:54 am
by Fred
Ok, I could reproduce it here, it's fixed, thanks !