Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Re: (Kozz) Re: "canned" FTP

by PriNet (Beadle)
on Feb 21, 2002 at 03:33 UTC ( #146694=note: print w/ replies, xml ) Need Help??

in reply to Re: (Kozz) Re: "canned" FTP
in thread "canned" FTP

ok, i have tried a different approach using the PASV approach, but i still get "425 can't build data connection" in the following example... obviously i'm

print FTP "PASV\r\n"; sysread (FTP, $FormData, 1024); print STDOUT "$FormData\n"; print FTP "LIST\r\n"; sysread (FTP, $FormData, 1024); print STDOUT "$FormData\n"; socket (DATA, AF_INET, SOCK_STREAM, getprotobyname('tcp')); bind (DATA, pack('S n a4 x8', AF_INET, 20, (gethostbyname($FTPdServer) +) [4])); listen (DATA, 1); while (<DATA>) { $FormData = $_; print STDOUT $FormData; } close (DATA); print FTP "QUIT\r\n"; sysread (FTP, $FormData, 1024); print STDOUT "$FormData\n"; close (FTP);

Comment on Re: Re: (Kozz) Re: "canned" FTP
Download Code
Replies are listed 'Best First'.
Re: Re: Re: (Kozz) Re: "canned" FTP
by petral (Curate) on Feb 21, 2002 at 13:19 UTC
    What happenned to   accept (DATA,IOS)  ?


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://146694]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (14)
As of 2015-11-30 13:56 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (771 votes), past polls