<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>It may be a coincidence but IIRC the binary value of the character "P" is 80... I guess the intention was to add it to the header as an integer instead of a char.</p>
<div> </div>
<p><br /></p>
<p>On 2017-01-06 18:55, mmd wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<p>Apologies to create a new issue for this stuff, but <a class="issue-link js-issue-link" href="https://github.com/openstreetmap/openstreetmap-website/issues/1400">#1400</a> is locked unfortunately and I wanted just to add a two line comment. So here we go:</p>
<p>I could reproduce the issue with Merkaartor 0.17.2 locally, the API URL as it is maintained in Merkaartor is perfectly ok, but somehow Merkaartor screwed up the "Host" part in the HTTP header by adding something like ":P" in the HTTP request. I guess this strict host check is somehow new or the user:wycbtma didn't use Merkaator for some time.</p>
<p>I don't if you want to support such a crappy and old client, at least for the user who reported it (and somehow is unable to upgrade for whatever reason) can no longer use his version.</p>
<p>See this HTTP trace I collected in wireshark:</p>
<pre><code>GET /api/0.6/way/65190596/relations HTTP/1.1
Host: www.openstreetmap.org:P
User-Agent: Merkaartor/0.17 (X11;SVNREV)
Authorization: Basic Og==
content-length: 0
HTTP/1.1 301 Moved Permanently
Date: Fri, 06 Jan 2017 17:39:15 GMT
Server: Apache/2.4.18 (Ubuntu)
Location: http://www.openstreetmap.org/api/0.6/way/65190596/relations
Content-Length: 356
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://www.openstreetmap.org/api/0.6/way/65190596/relations">here</a>.</p>
<hr>
<address>Apache/2.4.18 (Ubuntu) Server at www.openstreetmap.org:p Port 80</address>
</body></html>
</code></pre>
<p style="font-size: small; -webkit-text-size-adjust: none; color: #666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/1407">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLRMBgqGjgRV9RJ8HXAdlVMFJ9-xRks5rPoAkgaJpZM4Lc8rz">mute the thread</a>.<img src="cid:1483726716586fdf7cef01b022770373@xs4all.nl" width="1" height="1" /></p>
<div>
<div><!-- link ignored --> <!-- meta ignored --></div>
<!-- meta ignored --></div>
<!-- script not allowed --><br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br /> rails-dev mailing list<br /> <a href="mailto:rails-dev@openstreetmap.org">rails-dev@openstreetmap.org</a><br /> <a href="https://lists.openstreetmap.org/listinfo/rails-dev">https://lists.openstreetmap.org/listinfo/rails-dev</a></div>
</blockquote>
</body></html>