I’m working on a small mapping application as a hobby project (nothing huge, mainly doing this for learning about UI, UX and in the case of OSM http requests) I’m using Qt, and up until now I was requesting tiles from MapQuest (otile[…].mqcdn.com/tiles/…) without any problem. In my test, I create a request with the full url (for instance : http://otile1.mqcdn.com/tiles/1.0.0/map/0/0/0.jpg)) and send it, then I get the answer just fine.
The problem is that I wanted to test other tile providers, such as OpenStreetMap and CartoDB (I really like the Positron looks :p) When I try the exact same code (except the URL obviously) then I get an error 99 - connection expired. The strange thing is that if I copy / paste the URL into a browser, the tile display just fine.
So I think it’s got something to do with how my request is created, maybe the header ? I found this page : http://wiki.openstreetmap.org/wiki/Tile_usage_policy So I tried to add a user-agent (this seems to be the only “mandatory” header to provide) but that didn’t change a thing.
Also, if my application was blocked (which I doubt since I’m only making 1 request every few minutes) I should still get a tile, only a tile saying “access blocked”, if I trust the wiki page
So here I’m completely lost as to why I only can get tiles from MapQuest. If anyone has any idea of what I might be doing wrong, suggestions, questions for more details on how I’m doing things, etc. feel free to answer