Hi All
I have an application running on a Samsung Omnia Mobile phone running windows 6 - I am trying to setup FTP
from the phone back to a windows server - using the sample code by Enrico but I cant get hConnect to return a value
hConnect = INTERNETCONNECT( hInternet, "myIP",INTERNET_DEFAULT_FTP_PORT, "myUser", "myPass", INTERNET_SERVICE_FTP,0, 0 )
In a desktop app - I use the tip library to connect back to the same server and have no problems
#include "tip.ch"
function send()
local cServer := '',cUser := '',cPassword := '',oUrl,oFtp,cFile := 'error.log'
cServer := myIP
cUser := myUser
cPassword := myPass
cUrl := "ftp://" + cUser + ":" + cPassword + "@" + cServer
oUrl := tUrl():New(cUrl)
oFtp := tIPClientFtp():New(oUrl,.t.)
oFtp:nConnTimeout := 20000
oFtp:bUsePasv := .t.
oFtp:lTrace := .f.
if oFtp:open(cUrl)
if oFtp:UpLoadFile((cFile))
oFtp:close()
endif
else
?? 'Error openning url'
wait
endif
return(nil)
Thanks for any ideas.
Colin