[OpenLayers-Users] Re: getFeatureInfo problem

vrbikdan vrbikdan at gmail.com
Wed Mar 16 13:26:56 EDT 2011


dr <rykovd at ...> writes:

> 
> http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost
> 
> --
> View this message in context: http://osgeo-
org.1803224.n2.nabble.com/getFeatureInfo-problem-tp6174482p6176150.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> 

Hi, I tried to understand of this help, but I think I wasn't succesfull. I 
downloaded proxy.cgi and I paste it to this folder: D://Program Files/Geoserver 
2.0.2/data.dir/proxy, then I paste this in the function map in my openlayers 
scripts: OpenLayers.ProxyHost = "D://Program Files/Geoserver 
2.0.2/data.dir/proxy/proxy.cgi?url="

But it still not work, only change is, that now, it writes me: XMLHttpRequest 
cannot load 
file:///D://Program%20Files/Geoserver%202.0.2/data.dir/proxy/proxy.cgi?
url=http%3A%2F%2Flocalhost%3A8080%2Fgeoserver%2Fwms%3FSERVICE%3DWMS%26VERSION%3D
1.1.1%26REQUEST%3DGetFeatureInfo%26LAYERS%3Ddp%253Adp1%26QUERY_LAYERS%3Ddp%253Ad
p1%26STYLES%3D%26BBOX%3D1643701.855782%252C6571405.975387%252C1741541.25197%252C
6623765.339753%26FEATURE_COUNT%3D10%26HEIGHT%3D685%26WIDTH%3D1280%26FORMAT%3Dima
ge%252Fpng%26INFO_FORMAT%3Dtext%252Fhtml%26SRS%3DEPSG%253A900913%26X%3D754%26Y%3
D354. Cross origin requests are only supported for HTTP.

Sorry I'm just begginer in this :(





More information about the Users mailing list