<divclass="highlight"><pre><span></span><code><spanclass="c1"># Send a HTTP, 10 second timeout:</span>
curl -m <spanclass="m">10</span> PING_URL
</code></pre></div>
<h2>Use Retries</h2>
<p>To minimize the amount of false alerts you get from SITE_NAME, instruct your HTTP
client to retry failed requests several times.</p>
<p>Specifying the retry policy depends on the tool you use. curl, for example, has the
<code>--retry</code> parameter:</p>
<divclass="highlight"><pre><span></span><code><spanclass="c1"># Retry up to 5 times, uses an increasing delay between each retry (1s, 2s, 4s, 8s, ...)</span>
curl --retry <spanclass="m">5</span> PING_URL
</code></pre></div>
<h2>Handle Exceptions</h2>
<p>Make sure you know how your HTTP client handles failed requests. For example,
if you use a HTTP library which raises exceptions, decide if you want to