<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">As I see the proxy replaces the leading part of the url up to and including the @ sign. Since I do not provide username and password for authentification here. I end up with a GET request with a reduced and wrong url.<div class=""><br class=""></div><div class="">My current solution is a code fix in Mapproxy / client / tile.py so that I can use '%%40’ within the url to get the ‘@‘ instead:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class="">    <span style="color: rgb(202, 6, 91);" class=""><b class="">def</b></span> __init__(self, template, format=<span style="color: rgb(174, 153, 45);" class="">'png'</span>):</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class="">        self.template = template.replace(<span style="color: rgb(193, 11, 0);" class="">"%%40"</span>, <span style="color: rgb(193, 11, 0);" class="">"@"</span>, <span style="color: rgb(174, 153, 45);" class="">1</span>) </div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(154, 170, 186); background-color: rgb(255, 255, 255);" class=""><span style="color: rgba(0, 0, 0, 0.85);" class="">        </span># replace added to enable @ sign for hd tile urls (holgermuegge)</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class="">        self.format = format</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class="">        self.with_quadkey = <span style="color: rgb(202, 6, 91);" class=""><b class="">True</b></span> <span style="color: rgb(202, 6, 91);" class=""><b class="">if</b></span> <span style="color: rgb(174, 153, 45);" class="">'%(quadkey)'</span> <span style="color: rgb(202, 6, 91);" class=""><b class="">in</b></span> template <span style="color: rgb(202, 6, 91);" class=""><b class="">else</b></span> <span style="color: rgb(202, 6, 91);" class=""><b class="">False</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class="">        self.with_tc_path = <span style="color: rgb(202, 6, 91);" class=""><b class="">True</b></span> <span style="color: rgb(202, 6, 91);" class=""><b class="">if</b></span> <span style="color: rgb(174, 153, 45);" class="">'%(tc_path)'</span> <span style="color: rgb(202, 6, 91);" class=""><b class="">in</b></span> template <span style="color: rgb(202, 6, 91);" class=""><b class="">else</b></span> <span style="color: rgb(202, 6, 91);" class=""><b class="">False</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class="">        self.with_tms_path = <span style="color: rgb(202, 6, 91);" class=""><b class="">True</b></span> <span style="color: rgb(202, 6, 91);" class=""><b class="">if</b></span> <span style="color: rgb(174, 153, 45);" class="">'%(tms_path)'</span> <span style="color: rgb(202, 6, 91);" class=""><b class="">in</b></span> template <span style="color: rgb(202, 6, 91);" class=""><b class="">else</b></span> <span style="color: rgb(202, 6, 91);" class=""><b class="">False</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class="">        self.with_arcgiscache_path = <span style="color: rgb(202, 6, 91);" class=""><b class="">True</b></span> <span style="color: rgb(202, 6, 91);" class=""><b class="">if</b></span> <span style="color: rgb(174, 153, 45);" class="">'%(arcgiscache_path)'</span> <span style="color: rgb(202, 6, 91);" class=""><b class="">in</b></span> template <span style="color: rgb(202, 6, 91);" class=""><b class="">else</b></span> <span style="color: rgb(202, 6, 91);" class=""><b class="">False</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class="">        self.with_bbox = <span style="color: rgb(202, 6, 91);" class=""><b class="">True</b></span> <span style="color: rgb(202, 6, 91);" class=""><b class="">if</b></span> <span style="color: rgb(174, 153, 45);" class="">'%(bbox)'</span> <span style="color: rgb(202, 6, 91);" class=""><b class="">in</b></span> template <span style="color: rgb(202, 6, 91);" class=""><b class="">else</b></span> <span style="color: rgb(202, 6, 91);" class=""><b class="">False</b></span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div></div><div class=""><br class=""></div><div class="">This works for me, but is not a good solution. Is there any better way to reach tile urls using @ sign within?</div><div class=""><br class=""></div><div class="">Thanks a lot,</div><div class=""><br class=""></div><div class="">Holger</div></body></html>