Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Is there a method in LWP that lets me get a listing of all files available in a URL directory?

by saberworks (Curate)
on Jul 05, 2006 at 19:06 UTC ( [id://559414]=note: print w/replies, xml ) Need Help??


in reply to Is there a method in LWP that lets me get a listing of all files available in a URL directory?

Even if the web server will give you a list of files, different servers display the files in different ways, and in fact, it's just returning an HTML page. So, even if these options were enabled on the servers you were interested in, you'd have to parse the HTML page to pull out the filenames. I also know for a fact that apache cuts off the file names if they are too long. You're better off logging in via FTP or providing a url on the server which returns the list of files in a manner you can parse.
  • Comment on Re: Is there a method in LWP that lets me get a listing of all files available in a URL directory?

Replies are listed 'Best First'.
Re^2: Is there a method in LWP that lets me get a listing of all files available in a URL directory?
by betterworld (Curate) on Jul 05, 2006 at 19:46 UTC
    I also know for a fact that apache cuts off the file names if they are too long.
    This shouldn't be much of a problem, because only the displayed part of the link is cut, not the href.

      You are right that only the displayed name is truncated, not the link, but if you want to avoid the truncation that is easy enough to do too.

      Steve
      --

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://559414]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-24 17:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found