[Nagiosplug-help] check_http HTTP Version

Franz, Jay Jay.Franz at ssa.gov
Wed Sep 14 22:52:23 CEST 2011


> * Franz, Jay <Jay.Franz at ssa.gov> [2011-09-14 12:43]:
> > > Try using -H and supplying a host that does 1.1 requests for me...
> >
> > [...]
> >
> > Understanding that it now works, I am not sure that I understand why.  I
> > thought that the -H option was for virtual hosts?  And, why would it
> > work with both "$HOSTNAME$" and "$HOSTADDRESS$"?  That is, from the
> > plug-in's point of view, what is the difference between -I
> > "$HOSTADDRESS$" and -H "$HOSTADDRESS$"?
> 
> The -I option tells the plugin which host to connect to (as the -H
> option of other plugins).  The -H option tells the plugin to set the
> "Host" header field of the client request to the specified string, which
> indeed is required to check virtual hosts.¹  The HTTP/1.0 protocol
> doesn't define such a header field, so the plugin uses HTTP/1.1 when -H
> is specified.
> 
> Holger
> 
> ¹ See: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.23

Ah, it always pays to understand the underlying protocols.  Thanks, for the explanation and the reference.  

> ------------------------------------------------------------------------------
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> Learn about the latest advances in developing for the 
> BlackBerry® mobile platform with sessions, labs & more.
> See new tools and technologies. Register for BlackBerry® DevCon today!
> http://p.sf.net/sfu/rim-devcon-copy1 
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
>




More information about the Help mailing list