On Tue, 19 Nov 2002, Octavian Rasnita wrote: > I've made a script that uses the LWP module to get an HTML page from the > net. > Sometimes I use the full URL, that includes the file name, but sometimes I > use only the directory name like http://www.site.com/ > > Is there a method to find out the file name of the downloaded file? > I want to know if it is index.html, index.shtml, default.asp, etc.
No, not generally. (With some sites--but not many--the name may be in the Content-Location header.) -- Liam Quinn
