[Date Prev][Date Next][Thread Prev][Thread Next]
[Search]
[Date Index]
[Thread Index]
Re: [MacPerl-AnyPerl] webserver info
On 07/11/2000 at 17:20 +0000, Ronald J Kimball wrote:
>On Tue, Nov 07, 2000 at 06:01:24PM +0100, Allan Juul wrote:
>> hi
>> is it possible to retrieve the server header information through a perl
>> script via a webbrowsewer interface/form?
>>
>> www.apple.com
>> Server: Netscape-Enterprise/3.6 SP3
>I would expect all that to be in the environment.
>
>Perhaps:
>
>SERVER_NAME
>SERVER_SOFTWARE
It is if you're looking at the box you're serving from. If you're
looking at a remote box, you can use HEAD request; LWP should let you
do this.
Opening LWP::Simple in Shuck gives:
head($url)
Get document headers. Returns the following values if successful:
($content_type, $document_length, $modified_time, $expires, $server)
Returns an empty list if it fails.
--
:: paul
:: our conviction is like an arrow already in flight.
:: your life will only last until it reaches you.
==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-anyperl-request@macperl.org