tyrasd / overpass-turbo

A web based data mining tool for OpenStreetMap using the Overpass API.
https://overpass-turbo.eu
Other
888 stars 127 forks source link

Doesn't work with http proxy #51

Closed ghost closed 10 years ago

ghost commented 10 years ago

Tried a simple query on http://overpass-turbo.eu/ - when a proxy is enabled it returns with an AJAX error 0 immediately. After disabling the proxy in Firefox settings it works.

tyrasd commented 10 years ago

I'll take a look at this tomorrow, but I suspect that this could be a browser-bug. (opera 12 also has problems when the offroad-mode is activated)

tyrasd commented 10 years ago

PS: Can you try to enable the checkbox at Force simple CORS requests in the settings? Does that help?

tyrasd commented 10 years ago

OK. So, I wasn't able to reproduce this bug with Firefox 20 and a standard squid3 proxy. What kind of proxy do you use?

ghost commented 10 years ago

simple CORS works. It is Polipo http://www.pps.univ-paris-diderot.fr/~jch/software/files/polipo/polipo-20140107.tar.gz . Squid has some special features for transparent proxying so it may hide some problems.

When using default query method overpass turbo sends an "OPTIONS http://overpass-api..." to the proxy which says 501 method not implemented.

ghost commented 10 years ago

sorry closed accidentally..

tyrasd commented 10 years ago

Hm. I guess that there is not much I can do, if your proxy doesn't fully implement the HTTP standard. OPTION requests are needed for this kind of CORS requests. But you can simply continue to use the "simple CORS requests" option, it's there for situations like yours. ;)