boat73:

You might then try the rhelp and or rstatus commands to get a list of the commands that your FTP server supports and look for clues. On our mainframe, for example:

ftp> rhelp 214-The server-FTP commands are: 214-ABOR,*ACCT,*ALLO, APPE, CDUP, CWD, DELE, FEAT, HELP, LANG, LIST, +MDTM, MKD 214-MODE, NLST, NOOP, OPTS, PASS, PASV, PORT, PWD, QUIT, REIN, REST, +RETR, RMD 214-RNFR, RNTO, SITE, SIZE, *SMNT, SYST, STAT, STOR, STOU, STRU, TYPE, + USER 214-ADAT, AUTH, CCC, PBSZ, PROT, EPSV, EPRT 214-The commands preceded by '*' are not implemented 214-The data representation type may be ASCII, EBCDIC or IMAGE, or may + be 214-one of the following Double Byte Character Sets: *** SNIP *** 214-For information about a particular command, type 214 HELP SERVER command or QUOTE HELP command
Looking at the list of commands available, I dig through a few until I find:
ftp> rhelp type 214-TYPE {representation-type} {format}: the default type is ASCII. 214-The implemented data types are ASCII(TYPE A <N>), EBCDIC (TYPE E < +N>), 214-IMAGE (TYPE I), DBCS (TYPE B <options>), and UNICODE (TYPE U 2 <B +| L>). 214 The local byte size is 8.
(The output of rstatus is too long and boring to bother including here, but may have usefulclues for you as well.)

Anyway, if your server implements some particular command, then you can use the quote method of Net::FTP to send a particular command string to the server to get what you want.

I hope this is of some use to you...

roboticus


In reply to Re^3: Net::FTP seems to be corrupting my file by roboticus
in thread Net::FTP seems to be corrupting my file by boat73

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.