Passive mode ftp still uses a second connection for data, just the direction of
the connection differs.
In normal 'active' ftp, the client connect to remote port 21 for control, and data
connections come back from the server with a source port of 20 and destination
port > 1024. In 'passive' ftp, the client still connect to remote port 21 for control,
however data connections originate _from_ the client on a port > 1024 to the
remote server on a port > 1024, thus passing through firewalls that only allow
outgoing connections.
Then, of course, is the issue of binary mode encoding, translating between
formats, etc... Much easier to use Net::FTP, unless you have a week or so
to kill on a 15 minute job. ;-)
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|