NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi All,

I am using OSM for my application which is hosted on tomcat. Application is accessible only via https as a result of it http calls made to get tile on open e.g. :- would fail. Since security violation ...

I thought of creating a proxy via a servlet i have shown code below used in doGet ...this wont work

URL url = new URL(""); BufferedImage bimg =; response.setContentType("image/png"); OutputStream outputStream = response.getOutputStream(); ImageIO.write(bimg, "png", outputStream); outputStream.close();

error i get is - Caused by: Software caused connection abort: recv failed

Can anyone tell me what could be an issue? I have used the same code above pointing to different site to get an image and it works just fine....

asked 11 Nov '11, 16:35

Mayank's gravatar image

accept rate: 0%

What useragent would osm see your servlet proxy using? I don't know whether it is going to be the problem, but I think some are blocked. It might help someone who knows more about the technical aspects to answer, though.

(11 Nov '11, 16:43) EdLoach ♦

actually i am not passing useragent ... let me try that and will keep u posted

(11 Nov '11, 16:48) Mayank

i happen to come across this link

i tried using Alternative tile server from to and the code works... i am not sure what is going on....

why are the same restrictions not applied to http://a.tile..... as that of http://tile...

Any advice?

(11 Nov '11, 17:03) Mayank

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 11 Nov '11, 16:35

question was seen: 3,978 times

last updated: 11 Nov '11, 17:03

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum