how can i code a FTP - Client based on Winsock? because i need a FTP - Client that runs through a proxy server, but with the Internet Transfer Control it won't work.
: how can i code a FTP - Client based on Winsock? : because i need a FTP - Client that runs through a proxy server, but with the Internet Transfer Control it won't work. : : Thanks for reply : Sri Narayan : : Well firstly the proxy has to be set up to allow FTP.
Basically you set winsock to send FTP commands followed by vbCrLf
: : how can i code a FTP - Client based on Winsock? : : because i need a FTP - Client that runs through a proxy server, but with the Internet Transfer Control it won't work. : : : : Thanks for reply : : Sri Narayan : : : : : Well firstly the proxy has to be set up to allow FTP. : : Basically you set winsock to send FTP commands followed by vbCrLf : : "USER username" & vbClRf (Send) : "PASS password" & vbCrLf (send) etc... etc... : : You can easly find FTP commands on search engines : : : Si. : thanks^10 All working, i can connect, but i didn't found the FTP commands anywhere. if i try to list drive contents ("LIST") the ftpgateway answers: "425 Can't build data connection: Connection refused". do you know the commands or a page?
: : : how can i code a FTP - Client based on Winsock? : : : because i need a FTP - Client that runs through a proxy server, but with the Internet Transfer Control it won't work. : : : : : : Thanks for reply : : : Sri Narayan : : : : : : : : Well firstly the proxy has to be set up to allow FTP. : : : : Basically you set winsock to send FTP commands followed by vbCrLf : : : : "USER username" & vbClRf (Send) : : "PASS password" & vbCrLf (send) etc... etc... : : : : You can easly find FTP commands on search engines : : : : : : Si. : : : thanks^10 : All working, i can connect, but i didn't found the FTP commands anywhere. if i try to list drive contents ("LIST") the ftpgateway answers: "425 Can't build data connection: Connection refused". do you know the commands or a page? : : Sri Narayan : : :
What you need to do is open a port for the file to be downloaded as you cant retrive the list by text.
to read ports you use
PORT 123,342,655,245 'List of ports you have listening for data connection
Without looking I cant give you the code to transfer a file, but try looking on msdn http://msdn.microsoft.com
Si.
Simon Thwaites - IT Consultant Simon@fhdale.co.uk Simon@vbsnippets.co.uk
Comments
: because i need a FTP - Client that runs through a proxy server, but with the Internet Transfer Control it won't work.
:
: Thanks for reply
: Sri Narayan
:
:
Well firstly the proxy has to be set up to allow FTP.
Basically you set winsock to send FTP commands followed by vbCrLf
"USER username" & vbClRf (Send)
"PASS password" & vbCrLf (send) etc... etc...
You can easly find FTP commands on search engines
Si.
: : because i need a FTP - Client that runs through a proxy server, but with the Internet Transfer Control it won't work.
: :
: : Thanks for reply
: : Sri Narayan
: :
: :
: Well firstly the proxy has to be set up to allow FTP.
:
: Basically you set winsock to send FTP commands followed by vbCrLf
:
: "USER username" & vbClRf (Send)
: "PASS password" & vbCrLf (send) etc... etc...
:
: You can easly find FTP commands on search engines
:
:
: Si.
:
thanks^10
All working, i can connect, but i didn't found the FTP commands anywhere. if i try to list drive contents ("LIST") the ftpgateway answers: "425 Can't build data connection: Connection refused". do you know the commands or a page?
Sri Narayan
: : : because i need a FTP - Client that runs through a proxy server, but with the Internet Transfer Control it won't work.
: : :
: : : Thanks for reply
: : : Sri Narayan
: : :
: : :
: : Well firstly the proxy has to be set up to allow FTP.
: :
: : Basically you set winsock to send FTP commands followed by vbCrLf
: :
: : "USER username" & vbClRf (Send)
: : "PASS password" & vbCrLf (send) etc... etc...
: :
: : You can easly find FTP commands on search engines
: :
: :
: : Si.
: :
: thanks^10
: All working, i can connect, but i didn't found the FTP commands anywhere. if i try to list drive contents ("LIST") the ftpgateway answers: "425 Can't build data connection: Connection refused". do you know the commands or a page?
:
: Sri Narayan
:
:
:
What you need to do is open a port for the file to be downloaded as you cant retrive the list by text.
to read ports you use
PORT 123,342,655,245 'List of ports you have listening for data connection
Without looking I cant give you the code to transfer a file, but try looking on msdn http://msdn.microsoft.com
Si.
Simon Thwaites - IT Consultant
Simon@fhdale.co.uk
Simon@vbsnippets.co.uk