Winsock FTP - Client?

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


Comments

  • : 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.

  • : : 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



  • : : : 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


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories