Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5981129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:54:02+00:00 2026-05-22T21:54:02+00:00

I am having some issue here using LWP::Simple to get ftp site content in

  • 0

I am having some issue here using LWP::Simple to get ftp site content in Perl. It would work fine if the site used http, but not ftp, for example ftp://ftp.di.uminho.pt/pub/ctan/fonts/. But in my firefox browser, I can view the content as html.

So how to get the html of the site in this case?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:54:02+00:00Added an answer on May 22, 2026 at 9:54 pm

    LWP returns a document of the type text/ftp-dir-listing for a FTP directory. Use File::Listing to parse it.

    $ GET -USe ftp://ftp.di.uminho.pt/pub/ctan/fonts/
    GET ftp://ftp.di.uminho.pt/pub/ctan/fonts/
    User-Agent: lwp-request/6.00 libwww-perl/6.02
    
    200 OK
    Server: --------- Welcome to Pure-FTPd [privsep] ----------
    Content-Length: 32208
    Content-Type: text/ftp-dir-listing
    Client-Date: Mon, 06 Jun 2011 21:32:45 GMT
    Client-Request-Num: 1
    
    drwxr-xr-x  257 500      50          20480 May 30 06:27 .
    drwxrwsr-x   18 500      50           4096 Jun  6 20:02 ..
    drwxr-xr-x    2 500      500          4096 Apr  7 19:13 Asana-Math
    -rw-r--r--    1 500      500        573482 Apr  7 19:14 Asana-Math.zip
    drwxr-xr-x    2 500      50           4096 May 20  2005 CJK
    -r--r--r--    1 500      500      20384230 May 20  2005 CJK.zip
    drwxr-xr-x    2 500      50           4096 May 20  2005 DayRoman
    -r--r--r--    1 500      500        573352 May 20  2005 DayRoman.zip
    drwxr-xr-x    2 500      50           4096 Sep  7  2007 LuxiMono
    -r--r--r--    1 500      500        199660 May  6  2005 LuxiMono.zip
    lrwxrwxrwx    1 500      50              8 Oct 14  2005 MnSymbol -> mnsymbol
    lrwxrwxrwx    1 500      50             12 Oct 14  2005 Mnsymbol.zip -> mnsymbol.zip
    

    ['Asana-Math',     'd',              undef,    1302196380, 16877],
    ['Asana-Math.zip', 'f',              573482,   1302196440, 33188],
    ['CJK',            'd',              undef,    1116540000, 16877],
    ['CJK.zip',        'f',              20384230, 1116540000, 33060],
    ['DayRoman',       'd',              undef,    1116540000, 16877],
    ['DayRoman.zip',   'f',              573352,   1116540000, 33060],
    ['LuxiMono',       'd',              undef,    1189116000, 16877],
    ['LuxiMono.zip',   'f',              199660,   1115330400, 33060],
    ['MnSymbol',       'l mnsymbol',     8,        1129240800, 41471],
    ['Mnsymbol.zip',   'l mnsymbol.zip', 12,       1129240800, 41471],
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having some issue with Threadpooling here that I need some help with please. I
I'm having some issues with getting cookies to work when using a ProxyPass to
I'm having some trouble on a checked out project here at work. I have
I'm having an issue here that is blowing my mind. It's a very simple
Having a strange issue with some C# code - the Getter method for a
We're having a small issue and could use some help - we have the
I'm having an issue with my regex. I want to capture <% some stuff
I have been having some issues with LINQ-To-SQL around memory usage. I'm using it
We are having some issues getting SharePoint to work as we want it to.
I am having some issues with using the OrderBy extension method on a LINQ

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.