Here you need to escape &lt; and &gt; characters. Also use https instead of http and use "&lt;hostname&gt;" instead of "localhost" (it's more generic).

[The same problem is in other examples too.]