Practical mod_perl / HTML Book /



previous page: 3.10.4. Testing via a CGI Script
  
page up: HTML Version of the book
  
next page: 3.11. General Notes

3.10.5. Testing via lwp-request


Assuming you have the libwww-perl (LWP) package installed, you can run the following tests. (Most likely you do have it installed, since you need it to pass mod_perl's make test.)

panic% lwp-request -e -d http://www.example.com

This shows you just the headers; the -d option disables printing the response content. If you just want to see the server version, try:

panic% lwp-request -e -d http://www.example.com | egrep '^Server:'

Of course, you should use http://www.example.com:port_number if your server is listening to a port other than port 80.

 

Continue to:

  • prev: 3.10.4. Testing via a CGI Script
  • Table of Contents
  • next: 3.11. General Notes







TOP
previous page: 3.10.4. Testing via a CGI Script
  
page up: HTML Version of the book
  
next page: 3.11. General Notes


Menu

  • HTML Book
  • PDF Book
  • Download Code
  • Table of Contents
  • Errata
  • mod_perl2 User's Guide
  • Sitemap

Search


Add to Google




Creative Commons License


Written by
Eric Cholet (Logilune) and
Stas Bekman (StasoSphere & Free Books).


[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007 StasoSphere.com