<p>Hello,</p>

<p>I am having trouble getting check_http to follow redirects that contain angle brackets. A web site is issuing a 302 and a URL containing 'proxycustom=' and check_http is attempting to use 'proxycustom=' to follow the redirect. Here's partial verbose output from the command I am using:</p>

<p>./check_http --critical=20 --hostname=google-search-appliance --port=80 --string='Search Home' --url=/ --warning=10 --onredirect=follow -v<br>
GET / HTTP/1.1<br>
User-Agent: check_http/v2.1.2 (monitoring-plugins 2.1.2)<br>
Connection: close<br>
Host: google-search-appliance</p>

<p>http://google-search-appliance:80/ is 293 characters<br>
STATUS: HTTP/1.1 302 Found<br>
**** HEADER ****<br>
Date: Wed, 28 Oct 2015 18:23:07 GMT<br>
Server: Google Search Appliance<br>
Location: /search?site=default_collection&client=default_frontend&output=xml_no_dtd&proxystylesheet=default_frontend&proxycustom=<br>
Content-Type: text/html<br>
Content-Length: 0<br>
Connection: close<br>
**** CONTENT ****</p>

<p>Redirection to http://google-search-appliance:80/search?site=default_collection&client=default_frontend&output=xml_no_dtd&proxystylesheet=default_frontend&proxycustom=<br>
GET /search?site=default_collection&client=default_frontend&output=xml_no_dtd&proxystylesheet=default_frontend&proxycustom= HTTP/1.1<br>
User-Agent: check_http/v2.1.2 (monitoring-plugins 2.1.2)<br>
Connection: close<br>
Host: google-search-appliance</p>

<p>http://google-search-appliance:80/search?site=default_collection&client=default_frontend&output=xml_no_dtd&proxystylesheet=default_frontend&proxycustom= is 19793 characters<br>
STATUS: HTTP/1.1 200 OK<br>
**** HEADER ****</p>

<p>Let me know if I can provide any additional information. Thanks!</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href="https://github.com/monitoring-plugins/monitoring-plugins/issues/1389">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFQl2VojlTVenBibCpBpDmbxmm9QacXUks5pAQ2HgaJpZM4GXndj.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/monitoring-plugins/monitoring-plugins/issues/1389"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>