Re: lwp-rget and *.htm files

Frederic Corne (frederic.corne@erli.fr)
03 Jul 1997 17:10:49 +0200


Ole Tange <tange@id.dk> writes:

> On 3 Jul 1997, Frederic Corne wrote:
> 
> > On windows machines, there are lot of html files named *.htm because of the
> > old 8.3 compatibility. But It seems that these files are not considered as
> > html files for URL module.
> 
> MediaTypes.pm is probably your answer. Add a 'htm' => 'text/html'
> 

No, there is already a htm in the default media.type:

use LWP::MediaTypes;
@suffix = media_suffix('text/html');

foreach $suffix (@suffix) {
		print $suffix,"\n";
}

Gives :

htm
html

I have noticed that lwp-rget use 

$suffix = media_suffix($type);

which always gives "html" , but it is only for to build the name of the
saved file.



-- 

--- Frederic Corne --- ERLI --- frederic.corne@erli.fr ---