On 5 Jul 2003, Gisle Aas wrote:

>>LWP::Simple is able to get ftp:// URLs.  But the pod documentation
>>doesn't say whether it uses binary or ASCII transfer mode.

>It is documented in the LWP manpage (the first reference in the SEE
>ALSO section of LWP::Simple).

I did check the LWP manual page, but...

>In the "FTP Requests" sections it says:
>
>       The library supports ftp ASCII transfer mode by specifying the "type=a"
>       parameter in the URL.

Yes, but if you give a plain ftp:// URL without type=, what mode is
used?

Hmm I suppose it's implicit in the above that if type=a is not given
then ASCII transfer mode will not be used - and if you assume that the
library is not defaulting to EBCDIC or bytes transfer, it must
therefore be using binary.  It could be a bit more explicit:

    The library defaults to binary transfer mode for ftp, but uses
    ASCII mode if the "type=a" parameter is in the URL.

I just grepped for 'binary' in the LWP docs, which explains why I
didn't find anything :-P.

-- 
Ed Avis <[EMAIL PROTECTED]>


Reply via email to