Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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
Domain Nodelet?
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 imbibing at the Monastery: (2)
As of 2022-08-18 04:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?