[Nagiosplug-devel] check_http Host header...

Andreas Ericsson ae at op5.se
Tue Sep 21 07:44:06 CEST 2004


Jos Visser wrote:
> Hi,
> 
> I've got a situation where a Netscape 4.1 web server with a WebSphere
> 4.x plugin refuses to forward a request from check_http to a servlet
> because the "Host" header generated by check_http does not include the
> port number.
> 
> According to RFC 2616 (HTTP 1.1) section 14.23 (see
> http://www.faqs.org/rfcs/rfc2616.html) the Host header can include a
> port number and in absence of that port number the port number is
> understood to be the default port number of that service.
> 
> check_http never adds the port number, which leads to a more or less
> invalid-ish HTTP request (not really because check_http executes an HTTP
> 1.0 request which does not require a Host header)...
> 
> However, I modified check_http.c to include the port number and it seems
> to work fine for all other invocations of check_http as well...
> 

Can you supply a patch so others may benefit from this?

> ++Jos.nl
> 
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer




More information about the Devel mailing list