[Done] OpenFTP not work on 6.21

Post bugreports for the Windows version here
infratec
Always Here
Always Here
Posts: 7622
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: OpenFTP not work on 6.21

Post by infratec »

This looks strange.
It is not FTP, it's HTTP.
Fred
Administrator
Administrator
Posts: 18247
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: OpenFTP not work on 6.21

Post 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


Fred
Administrator
Administrator
Posts: 18247
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: OpenFTP not work on 6.21

Post by Fred »

Also could you paste your libcurl code which works so I can compare ?
Fred
Administrator
Administrator
Posts: 18247
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: OpenFTP not work on 6.21

Post by Fred »

Ok, I could reproduce it here, it's fixed, thanks !
Post Reply