Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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 browsing the Monastery: (8)
As of 2016-02-14 15:53 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (470 votes), past polls