Referer

Started by Visitor7, November 08, 2013, 08:26:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Visitor7

How to use "httpparam" tag in "onlinemapsources.xml"? Sometimes I need to specify the "referer" for correctly work online map. For example:


<onlinemapsource uid="581">
<name>Kosmosnimki Sat</name>
<url><![CDATA[http://maps.kosmosnimki.ru/TileSender.ashx?ModeKey=tile&MapName=Kosmosnimki&LayerName=C7B2E6510209444E80673F3C37519F7E&z={$z}&x={$x}&y={$y}&key=BDY%2F%2Brk8pOLTOFTvDC8MM54h%2BJCcGG5Ag4ggD01W%2FCr51iFE%2FWOBxtA%2FNSJflAbDKbr1oV1QtDMt2PxGE3P2MY%2FzVabjK3O%2F1c2tlRmsdYXnVvAs0%2BHPXruvQ6d%2F6Th8fR5n%2FNmtg8cnwflfHfXxBcFzDy0qet4SdpQs6Gd55g94YiFckoi%2FUroyw7YvtvdbFgiNY%2BONEZK4ligXKR1rcVooBnEpHhPqAjayL0pNPyXGzQUBYYePUOTfxS2Nnp4JyvAYuJQJtgMUaOlnsPINj77HNpMVTUmaqM4PT%2Bv00l8%3D]]></url>
<website><![CDATA[<a href="http://kosmosnimki.ru/">KosmoSnimki.ru</a>]]></website>
<minzoom>0</minzoom>
<maxzoom>20</maxzoom>
<projection>MERCATORELIPSOIDAL</projection>
<servers></servers>
<httpparam name="Referer">http://kosmosnimki.ru/</httpparam>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
<maxtilesday>0</maxtilesday>
<maxthreads>0</maxthreads>
<xop>$x - (1 << $z) / 2 </xop>
<yop>(1 << $z) / 2 - $y - 1</yop>
<zop></zop>
<qop></qop>
<sop></sop>
</onlinemapsource>

But it's not working correctly.

orux

#1
Quote from: "Visitor7"How to use "httpparam" tag in "onlinemapsources.xml"? Sometimes I need to specify the "referer" for correctly work online map. For example:


<onlinemapsource uid="581">
<name>Kosmosnimki Sat</name>
<url><![CDATA[http://maps.kosmosnimki.ru/TileSender.ashx?ModeKey=tile&MapName=Kosmosnimki&LayerName=C7B2E6510209444E80673F3C37519F7E&z={$z}&x={$x}&y={$y}&key=BDY%2F%2Brk8pOLTOFTvDC8MM54h%2BJCcGG5Ag4ggD01W%2FCr51iFE%2FWOBxtA%2FNSJflAbDKbr1oV1QtDMt2PxGE3P2MY%2FzVabjK3O%2F1c2tlRmsdYXnVvAs0%2BHPXruvQ6d%2F6Th8fR5n%2FNmtg8cnwflfHfXxBcFzDy0qet4SdpQs6Gd55g94YiFckoi%2FUroyw7YvtvdbFgiNY%2BONEZK4ligXKR1rcVooBnEpHhPqAjayL0pNPyXGzQUBYYePUOTfxS2Nnp4JyvAYuJQJtgMUaOlnsPINj77HNpMVTUmaqM4PT%2Bv00l8%3D]]></url>
<website><![CDATA[<a href="http://kosmosnimki.ru/">KosmoSnimki.ru</a>]]></website>
<minzoom>0</minzoom>
<maxzoom>20</maxzoom>
<projection>MERCATORELIPSOIDAL</projection>
<servers></servers>
<httpparam name="Referer">http://kosmosnimki.ru/</httpparam>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
<maxtilesday>0</maxtilesday>
<maxthreads>0</maxthreads>
<xop>$x - (1 << $z) / 2 </xop>
<yop>(1 << $z) / 2 - $y - 1</yop>
<zop></zop>
<qop></qop>
<sop></sop>
</onlinemapsource>

But it's not working correctly.




Hi, this option is not in use. But I amgoing to enable this tag as additional header parameters,



orux