[Nagiosplug-devel] [ nagiosplug-Patches-1881898 ] Fix 'Host:' header to include port

SourceForge.net noreply at sourceforge.net
Tue Jan 29 17:15:25 CET 2008


Patches item #1881898, was opened at 2008-01-29 11:14
Message generated for change (Settings changed) made by duprec
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1881898&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: Bugfix
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Christophe Dupre (duprec)
Assigned to: Nobody/Anonymous (nobody)
>Summary: Fix 'Host:' header to include port

Initial Comment:
RFC-2616 (HTTP/1.1 protocol) states that the lack of the port information in the "Host: " header supplied by the client implies the default value (80 for http, 443 for https). This means that if we override the port with the '-p' option, the plugin must provide that information in the "Host: " header.

This patch fixes that oversight by always supplying the port, which is accepted practice and makes it a one-liner.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=1881898&group_id=29880




More information about the Devel mailing list