Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Can I use LWP to determine the remote OS?

by arthas (Hermit)
on Jun 12, 2003 at 21:23 UTC ( #265509=note: print w/replies, xml ) Need Help??


in reply to Can I use LWP to determine the remote OS?

You can have a look at the headers of the server response, however the information will not be complete, and might even be bogus.

Anyhow, the Server header looks something like this (tried on perl.com):

Server: Apache/1.3.26 (Unix) PHP/4.2.1 mod_gzip/1.3.19.1a mod_perl/1.2 +7

...so you can guess it's Unix in this case. This is the header for perl.it:

Server: Apache/1.3.27 (Win32)

Hope this helps!

Michele.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://265509]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2019-05-25 03:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (151 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!