Results 1 to 3 of 3

Thread: [2.0] "LIST\r\n" Not retrieving ftp directory?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    [2.0] "LIST\r\n" Not retrieving ftp directory?

    I send TCP packets to login to an ftp server and everything works but "LIST\r\n" doesn't return anything not even an error.

    What I am trying to do is have an rss type feed of these files.

    ftp://64.151.85.204/zf/

    here is the code I am trying.

    Code:
                tcp.Connect("64.151.85.204", 21);
                tcp.Client.Send(Str2Buf("USER anonymous\r\n"));
                tcp.Client.Send(Str2Buf("PASV\r\n"));
                tcp.Client.Send(Str2Buf("CWD /zf/\r\n"));
                tcp.Client.Send(Str2Buf("NLST */*\r\n"));
    Here is what I received.



    (I know there is an ftp class but it is easier to work with tcp packets for me)

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142

    Re: [2.0] "LIST\r\n" Not retrieving ftp directory?

    seems like a firewall problem, someone else had a similar problem here ---> link <---
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,547

    Re: [2.0] "LIST\r\n" Not retrieving ftp directory?

    Nothing wrong with my firewall.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width