ftplib.bb problem

Blitz3D Forums/Blitz3D Programming/ftplib.bb problem

vivaigiochi(Posted 2010) [#1]
Hello i use this library finded thanks to this community.
It's work fine when i use ftp_get command but fail when i use
ftp_put command.
i see a runtime error that say me about internet connection....
but firewall it's ok and the connection it's ok because i can do ftp_get command....
who know about this problem? thanks


xlsior(Posted 2010) [#2]
There's two flavors of FTP, active and passive, which differ in how they initiate and utilize control and transmission channels.

Many firewalls do not support active FTP properly, and only work with passive FTP. In those situations you typically only establish part of the control/transmission channels, so you can view and download, but not upload.

I have no idea what firewall you have and have never used ftplib.bb either, but look at the program and see if it has any option to use passive FTP -- if so, it may fix your problem.


vivaigiochi(Posted 2010) [#3]
ok i have read.
there is in first part of source code a FTP_OpenData function that work in that manner (totally after ; ie. comment).
But after execution function don't exists. i have read the source code and seems true...:-) che sfiga! another library???


vivaigiochi(Posted 2010) [#4]
finded this
http://www.blitzbasic.com/codearcs/codearcs.php?code=248

it's use only passive mode.

But can't do ftp_put (upload).
Hovewer several ftp professional and free program do it easily.
my connection work's fine...