This isn't possible, and even the pages where you specify the full file name may not actually indicate that a file with that name actually exists, unless you are fetching your own site and know it isn't being dynamically generated.
A URL ending in a / either just the domain or a particular subdirectory depth indicates to *most* (talking 98%) of today's web servers that if it can't find something indicating an index file, which is set in the configuration of the server then it should either give permission denied or generate one for the user. In both of these cases no index file even exists. And while most servers I would imagine use a standard naming convention of index.htm, etc. there is nothing stopping the person from using wiggins.html, or even 27348782374878234.wig as an index file. On top of that even the / directory that you are referring to need not even exist, or at least have anything under it, it may just be an internal redirect to a script for instance that prints to your web session dynamically. And then there is the whole frames issue....... http://danconia.org/ ------------------------------------------------ On Tue, 19 Nov 2002 05:10:18 +0200, "Octavian Rasnita" <[EMAIL PROTECTED]> wrote: > Hi all, > > I am getting an HTML page from the net using the LWP module. > If I specify the full link, including the file name it is all right. > > However, sometimes I specify only the directory name like > http://www.site.com/ > > Well, in this case I want to find out the name of the file that will be > downloaded by the LWP module. > > I want to know if it is index.html, index.htm, index.php, default.asp, etc. > > I've searched through the POD documentation of LWP module, but I couldn't > find an answer for this problem. > > Thank you. I hope it is possible. > > > Teddy, > Teddy's Center: http://teddy.fcc.ro/ > Email: [EMAIL PROTECTED] > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]