[Nagiosplug-devel] [ nagiosplug-Patches-2810124 ] HTTP compliance in check_http
SourceForge.net
noreply at sourceforge.net
Mon Jun 22 13:45:53 CEST 2009
Patches item #2810124, was opened at 2009-06-22 09:40
Message generated for change (Comment added) made by hweiss
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=2810124&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Pending
>Resolution: Works For Me
Priority: 5
Private: No
Submitted By: Henrik Nilsson (rakhun)
Assigned to: Nobody/Anonymous (nobody)
Summary: HTTP compliance in check_http
Initial Comment:
check_http v1.4.13.138.g9eab.dirty (nagios-plugins 1.4.13)
Example plugin commandline: plugins/check_http -I http1-0server.com
Tested on: Fedora 10, i686 with compiler gcc (GCC) 4.3.2 20081105 (Red Hat
4.3.2-7)
Originally the plugins sends the "Connection: close" in all cases, while only HTTP/1.1 supports it (HTTP/1.0 has this behaviour by default, not supporting keep-alive), the patch makes it use "Connection: close" only when using HTTP/1.1
----------------------------------------------------------------------
>Comment By: Holger Weiß (hweiss)
Date: 2009-06-22 13:45
Message:
We heard reports of server configurations which only close the connection
after sending the response if "Connection: close" was specified even in the
case of HTTP/1.0 requests. Therefore, we didn't limit the use of this
header line to HTTP/1.1 requests.
Have you seen any HTTP/1.0 server which complains about the header? If
so, that would be a server bug, as the HTTP/1.0 standard clearly states
that "Unrecognized header fields should be ignored by the recipient" (RFC
1945, 7.1).
That said, I wonder whether anyone actually checks a server which cannot
handle HTTP/1.1 requests these days. Maybe we should drop HTTP/1.0 support
entirely some day.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=2810124&group_id=29880
More information about the Devel
mailing list