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

Ok so I'm having some strange issue with an mvc 3 site using javascript
I'm having an issue getting some code to work. Is there a way to
I'm having some trouble on a checked out project here at work. I have
Having some issue with Threadpooling here that I need some help with please. I
I'm having an issue here that is blowing my mind. It's a very simple
Alright, I'm having some issues and I believe it's a CSS one. Here is
I am having some problems figuring out this issue. I have a server that
I am having a strange issue with some of my packages in the same
I'm having an issue with a query I wrote where for some reason the
I am having some troubles thinking through a design issue and thought that the

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.