Re: determine document type
Gisle Aas (gisle@activestate.com)
11 Jan 2001 08:55:38 -0800
Ulrich Wisser <u.wisser@publisher.de> writes:
> I try to determine document types with a head request.
> Unfortunately does Coldfusion not support HEAD requests
> (Error 405 Method not allowed).
>
> Is there any other way to determine the document type
> without downloading the whole document?
Set $ua->max_size(1) and then try a normal GET request.
You could also try to use the guess_media_type() function from
LWP::MediaTypes, but it is better to actually ask the server.
Regards,
Gisle