cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: basic help please

From: Alex Bligh <alex_at_alex.org.uk>
Date: Fri, 03 Dec 2010 13:32:07 +0000

--On 3 December 2010 11:39:30 +0100 Daniel Stenberg <daniel_at_haxx.se> wrote:

>> However when connecting we get the response,
>>
>> h1.h2.h3.h4,p1,p2 (notice the difference between full stops and comma's)
>
> Wow. What server software is that? Do your other ftp clients do passive
> transfers fine from it?

RFC959 says:

         DATA PORT (PORT)

            The argument is a HOST-PORT specification for the data port
            to be used in data connection. There are defaults for both
            the user and server data ports, and under normal
            circumstances this command and its reply are not needed. If
            this command is used, the argument is the concatenation of a
            32-bit internet host address and a 16-bit TCP port address.
            This address information is broken into 8-bit fields and the
            value of each field is transmitted as a decimal number (in
            character string representation). The fields are separated
            by commas. A port command would be:

               PORT h1,h2,h3,h4,p1,p2

            where h1 is the high order 8 bits of the internet host
            address.

Which is I think what Lee says the documentation for his server described,
but isn't what it actually does. I'm surprised it works with any ftp
client at all.

-- 
Alex Bligh
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-03