Hi, I'm attempting to use I-spy, a Perl script which compares FTP or HTTP sites and generates a comparison output. I'm trying to use it on 2 FTP sites.

The FTP portion makes use of Net::FTP, and parses a text file for arguments (2 ftp sites), using the format:

ftp://username:password@hostname//

However, in my case, one of my usernames contains a / (beyond my control), and I can't seem to "escape" it - eg, my username is XX/yyyy, the script bombs out with "Net::FTP: hostname XX invalid" or similar. I've tried changing the username field in the text file to be XX//yyyy, which has the same effect as above, and XX\/yyyy which bombs out with "hostname XX\ invalid".

I'm not sure what Net::FTP is looking for to let me do this; I also couldn't find anything relating to whether or not a / will EVER be parsed correctly as a username by Net::FTP even if passed as an argument and not in the main ftp syntax line.

Also, if anyone knows of any other script/tool already available (pref. free), I'd like to hear about it - this was the only one I could find (searched freshmeat, google).

Thanks,

Glenn


In reply to Net::FTP - syntax with username containing / by Anonymous Monk

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.