[Nagiosplug-devel] [ nagiosplug-Bugs-1652471 ] check_http is missing http Accept: header

SourceForge.net noreply at sourceforge.net
Mon Feb 5 15:59:14 CET 2007


Bugs item #1652471, was opened at 2007-02-05 15:59
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1652471&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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Andreas Vavra (vavra)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_http is missing http Accept: header

Initial Comment:
check_http is not sending an "Accept:" header when connecting to http servers.

Please add something like

  /* Accept Header */
  asprintf (&buf, "%sAccept: text/html\r\n",buf);

in function check_http() in check_http.c somewhere after 

  /* optionally send the host header info */
  if (host_name)
    asprintf (&buf, "%sHost: %s\r\n", buf, host_name);


If you can spend some more time on this plugin, optionally add a command line parameter to let caller set/override this option (i.e. for changing "Accept:" from "text/html" to "text/xml").

Regards
Andi


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

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




More information about the Devel mailing list