<div dir="ltr">"URLs in general are case-sensitive (with the exception of machine names). There may be URLs, or parts of URLs, where case doesn't matter, but identifying these may not be easy. Users should always consider that URLs are case-sensitive."<div><br></div><div><a href="http://www.w3.org/TR/WD-html40-970708/htmlweb.html">http://www.w3.org/TR/WD-html40-970708/htmlweb.html</a><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div><br></div>-- <div><b>Steve Coile<br></b>Senior Network and Systems Engineer, <a href="http://www.mcclatchyinteractive.com/" target="_blank">McClatchy Interactive</a><div><font size="1">Office: 919-861-1247 | Mobile: 919-622-5369 | Fax: 919-861-1300</font></div></div></div></div>
<br><div class="gmail_quote">On Wed, Apr 1, 2015 at 1:58 PM, John Thurston <span dir="ltr"><<a href="mailto:john.thurston@alaska.gov" target="_blank">john.thurston@alaska.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 4/1/2015 9:47 AM, J.C. Cleaver wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
On Wed, April 1, 2015 10:07 am, John Thurston wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yesterday, I crashed xymonnet by doing a copy/paste into an httpstatus<br>
test. I eventually figured out what was wrong.<br>
<br>
This syntax is good:<br>
    0.0.0.0  <a href="http://foo.com" target="_blank">foo.com</a>   # httpstatus;<a href="http://foo.com/index.html;401" target="_blank">http://foo.com/<u></u>index.html;401</a><br>
This syntax is bad:<br>
    0.0.0.0  <a href="http://foo.com" target="_blank">foo.com</a>   # httpstatus;<a href="HTTP://foo.com/index.html;401" target="_blank">HTTP://foo.com/<u></u>index.html;401</a><br>
<br>
The man page for hosts.cfg doesn't say anything about required or<br>
supported casing. Is there some reason why xymonnet shouldn't be able to<br>
handle mixed-case protocol names in the URLs provided?<br>
<br>
</blockquote>
<br>
<br>
John,<br>
<br>
<br>
Can't think of any... Case preservation should be done for the path, but<br>
the protocol is irrelevant there. <a href="https://www.ietf.org/rfc/rfc1738.txt" target="_blank">https://www.ietf.org/rfc/<u></u>rfc1738.txt</a><br>
calls it out as a 'should', so it seems like a bug (I believe parse_url()<br>
in lib/url.c). I'll roll this in.<br>
<br>
Curious, did you get any sort of error log output before it went down?<br>
Aside from case-insensitive matching, it's an indication we're not doing<br>
sufficient error checking later on somewhere.<br>
</blockquote>
<br>
Yes. I received:<br>
 2015-03-31 14:39:34 Unknown URL scheme 'HTTP' in URL '<a href="HTTP://foo.com:9080" target="_blank">HTTP://foo.com:9080</a>'<br>
<br>
which looks like it comes from lib/url.c following a case-sensitive match of startp against a list of possible types.<br>
<br>
Thanks for your quick attention.<span class="HOEnZb"><font color="#888888"><br>
-- <br>
   Do things because you should, not just because you can.<br>
<br>
John Thurston    907-465-8591<br>
<a href="mailto:John.Thurston@alaska.gov" target="_blank">John.Thurston@alaska.gov</a><br>
Enterprise Technology Services<br>
Department of Administration<br>
State of Alaska<br>
______________________________<u></u>_________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/<u></u>mailman/listinfo/xymon</a><br>
</font></span></blockquote></div><br></div>