I have copied the code directly from another app of mine where the code works perfectly (it was compiled with an older version of FWH / xHarbour)
When I try with my current FWH / xHarbour it never connects.
I have verified the user/pass. If I copy the string (cUrl) into my browser it will connect.
Any idea of what I have missed or has something changed in FWH/xHarbour?
- Code: Select all Expand view
cUrl := "ftp://myUser:myPass@mySite.net"
oUrl := tUrl():New(cUrl)
oFtp := tIPClientftp():New(oUrl,,.t.)
oFtp:nConnTimeout := 60000
oFtp:bUsePasv := .t.
IF oFtp:open(cUrl)
IF oFtp:UpLoadFile(cZipFile)
MsgInfo("Sent")
ELSE
MsgInfo("Not Sent")
ENDIF
oFtp:Close()
ELSE
MsgInfo("Not Connected") // <-- This is always the responce
ENDIF