2010-03-22 08:17:53 PDT
Hi,
I have a app where I need send a file by FTP. My SmartPhone is a Palm Treo Pro with Windows Mobile 6.1 Professional.
I have a problem: How to detect and create a 3G/GPRS connection ?
When I try execute this code, it don't connect/create/estabilished a connection with the FTP Server:
ftp = ftplib.FTP("ftp.myserver.com.br")
ftp.login("userName", "password")
ftp.set_pasv(0)
ftp.set_debuglevel(2)
ftp.sendcmd("CWD /public_ftp/incoming")
upload(ftp, myFile)
To solve this I have that open the "Internet Explorer" before execute my app and this is bad.
How to solve this problem ?
Thanks Leandro.