• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Logging HTTP header info using Apache HTTP

 
Ranch Hand
Posts: 464
Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

How do i log the HTTP Header info that the Apache HTTP Server recevies from the client? I am currently using Apache HTTP 2.0.59 version.

Thanks
Venkatesh S
 
Hooplehead
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are probably using the predefined common or combined log file format at the moment. You could do a custom format by selecting the fields you are interested in from http://httpd.apache.org/docs/2.0/mod/mod_log_config.html#formats

Many of the loggable headers are predefined (%...h is Remote host, %...H is request protocol, etc.) but you can get other headers out with %...{Foobar}i (where {Foobar} is your header name) log format entries.

Follow the instructions for mod'ing your httpd.conf here: http://httpd.apache.org/docs/2.0/logs.html
 
S Venkatesh
Ranch Hand
Posts: 464
Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much !! i was searching for the same
 
reply
    Bookmark Topic Watch Topic
  • New Topic