erikabruni73 / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

Ability to modify the HTTP Header for OnlineTileSourceBase #249

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I try to create a new tileSource base on the OnlineTileSourceBase (in order to 
load tiles from the IGN database).
The IGN server requires to manage a referer into the HTTP request but 
OnlineTileSourceBase offers method to set the URL but it seems nothing is 
available to change the HTTP header.

Original issue reported on code.google.com by caerw...@gmail.com on 4 Aug 2011 at 2:27

GoogleCodeExporter commented 9 years ago
Is the refer static, i.e. never changes once it's set?

Original comment by neilboyd on 4 Aug 2011 at 3:34

GoogleCodeExporter commented 9 years ago
Yes, it could be static. It is linked to a contract and since there is only one 
key per contract, it is linked to the key.

Original comment by caerw...@gmail.com on 8 Aug 2011 at 12:18

GoogleCodeExporter commented 9 years ago
As we have the getTileURLString method, it could be nice to have an 
updateHeader method with the HttpUriRequest as parameter. In this way, we would 
be able to manage request header values (cookies for example) easily.

Original comment by caerw...@gmail.com on 11 Aug 2011 at 12:34

GoogleCodeExporter commented 9 years ago
I believe this is now possible with the HTTP factory implemented in Issue 432.

Original comment by kurtzm...@gmail.com on 4 Jun 2013 at 2:02