Get current Apache version string for display

Posted by Stijn Sanders on Stack Overflow See other posts from Stack Overflow or by Stijn Sanders
Published on 2010-04-06T21:20:09Z Indexed on 2010/04/06 21:23 UTC
Read the original article Hit count: 203

Filed under:
|
|
|

I'm writing an Apache module and want to get a string with the Apache name version and other details. Much like what gets added to outgoing headers, e.g.:

Server: Apache/2.2.13 (Win32)

I've tried code like this:

apr_table_get(request_rec->headers_out,"Server")

But that doesn't seem to work. Is there an API call I haven't found or am I doomed to get version resource data from httpd.exe?

© Stack Overflow or respective owner

Related posts about apache

Related posts about apache2