<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[ServiceCheck.HTTP offending port value in the Host header]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I've been struggling a bit with monitoring a particular Wordpress site, I kept getting a 301 redirect all the time from the site with ServiceCheck.HTTP, I finally figure it out after some TCPDumping of the traffic, the request from ServiceCheck.HTTP looks like this:</p>
<pre><code>GET / HTTP/1.1
Connection: close
Accept: */*
Host: www.domain.com:80
</code></pre>
<p dir="auto">The additional <strong>:80</strong> in the Host header seems to be causing the problem, as soon as i modified the source code for the portcheck subagent in: netxms-1.2.4/src/agent/subagents/portCheck/http.cpp to exclude the port value, the Wordpress site stopped redirecting me and instead showed the HTML output of the site.</p>
<p dir="auto">I'm not sure what the solution should be and this probably is a Wordpress specific issue, but I'd love to see an option to specify and have the possibility to override what HTTP headers are sent to the target.</p>
<p dir="auto">Thanks</p>
<p dir="auto">Anders</p>
]]></description><link>https://forum.netxms.org/topic/2036/servicecheck.http-offending-port-value-in-the-host-header</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 19:41:10 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/2036.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 24 Nov 2012 08:52:33 GMT</pubDate><ttl>60</ttl></channel></rss>