Hi,<br><br>I&#39;ve been testing in IE.. If I create a &#39;test.html&#39; file in
a folder under IIS, I get an error of denied access/resource not
available.. But if I copy that file in the www folder of geoserver,
then everything works ok.. This is quite logical, because IIS is
running on port 80, and geoserver in 8080 (They are different hosts)...<br>
<br>Then when I declare the proxy, the IIS&#39;s test.html, the response i get is empty.. <br>And
looking in Openlayers.js I&#39;ve seen where the url is initialized before
the .open, and I think that I&#39;m doing something wrong, because the
final url is not a correct one..<br>
<br><br>if(config.proxy&amp;&amp;(url.indexOf(<div id=":cb" class="ii gt">&quot;http&quot;)==0)){<br>            url=config.proxy+encodeURIComponent(url);<br>}<br>request.open(config.method,url,config.async,config.user,config.password);<br>
<br><br>before &quot;recoding&quot; the url, it has the value: <br>
<a href="http://localhost:8080/geoserver/wms?REQUEST=GetFeatureInfo&amp;EXCEPTIONS=application%2Fvnd.ogc.se_xml&amp;BBOX=-188.610843%2C-60.534809%2C189.241843%2C149.772809&amp;X=104&amp;Y=236&amp;INFO_FORMAT=text%2Fplain&amp;QUERY_LAYERS=G4WD%3Aus_states&amp;FEATURE_COUNT=50&amp;Layers=G4WD%3Aus_states&amp;Styles=&amp;Srs=EPSG%3A4269&amp;WIDTH=1078&amp;HEIGHT=600&amp;format=image%2Fpng" target="_blank">http://localhost:8080/geoserver/wms?REQUEST=GetFeatureInfo&amp;EXCEPTIONS=application%2Fvnd.ogc.se_xml&amp;BBOX=-188.610843%2C-60.534809%2C189.241843%2C149.772809&amp;X=104&amp;Y=236&amp;INFO_FORMAT=text%2Fplain&amp;QUERY_LAYERS=G4WD%3Aus_states&amp;FEATURE_COUNT=50&amp;Layers=G4WD%3Aus_states&amp;Styles=&amp;Srs=EPSG%3A4269&amp;WIDTH=1078&amp;HEIGHT=600&amp;format=image%2Fpng</a><br>

<br>And after, it has the value <br>/geoserver/rest/proxy?url=http%3A%2F%2Flocalhost%3A8080%2Fgeoserver%2Fwms%3FREQUEST%3DGetFeatureInfo%26EXCEPTIONS%3Dapplication%252Fvnd.ogc.se_xml%26BBOX%3D-188.610843%252C-60.534809%252C189.241843%252C149.772809%26X%3D104%26Y%3D236%26INFO_FORMAT%3Dtext%252Fplain%26QUERY_LAYERS%3DG4WD%253Aus_states%26FEATURE_COUNT%3D50%26Layers%3DG4WD%253Aus_states%26Styles%3D%26Srs%3DEPSG%253A4269%26WIDTH%3D1078%26HEIGHT%3D600%26format%3Dimage%252Fpng<br>

whichs seems not to be correct..<br><br>I don&#39;t know if i&#39;m forgetting something.. Any idea?<br><br>Thanks!</div><br><br><div class="gmail_quote">2009/11/19 stash <span dir="ltr">&lt;<a href="mailto:steffen.schwarz85@googlemail.com">steffen.schwarz85@googlemail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5"><br>
<br>
<br>
Quim Rifà wrote:<br>
&gt;<br>
&gt; Hi list,<br>
&gt;<br>
&gt; I know that tere are so many comments about that, but no one is solving my<br>
&gt; problem..<br>
&gt;<br>
&gt; I have geoserver serving a WMS vector layer that has some features... I<br>
&gt; have<br>
&gt; the geoserver running in localhost:8080, and the application that I&#39;m<br>
&gt; testing, is running in localhost:3015.. And I suppose that due de<br>
&gt; different<br>
&gt; ports, when I try to do a GetFeatureInfo (clicking anywhere on the map),<br>
&gt; it<br>
&gt; says &quot;access denied&quot;.. In the XMLHttpRequest.open(...).<br>
&gt;<br>
&gt; I&#39;ve added the proxy following the instructions found in &quot;<br>
&gt; <a href="http://geoserver.org/display/GEOS/GeoServer+Proxy+Extension" target="_blank">http://geoserver.org/display/GEOS/GeoServer+Proxy+Extension</a>&quot;.. But it<br>
&gt; still<br>
&gt; says that there is no access..<br>
&gt; Then I tryied to initialize the proxy host, in the &quot;function Init()&quot;,<br>
&gt; writing &quot;OpenLayers.ProxyHost = &quot;/geoserver/rest/proxy?url=&quot;;&quot; And now<br>
&gt; what<br>
&gt; it says, is that it can&#39;t find the resource, and suggest to verify the url<br>
&gt; &quot;/geoserver/rest/proxy&quot;<br>
&gt;<br>
&gt; What is happening with that? Any idea?<br>
&gt;<br>
&gt; Thanks!!<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
Hello,<br>
I had the same problem and I know that this can be really frustrating. But<br>
you can try the following things.<br>
<br>
Thereby your html site and geoserver are running on the same pc (localhost)<br>
you don&#39;t need a proxyhost. Set it in comments in your html.<br>
<br>
Try it out with different browsers. Firefox always blocked my request and<br>
with Internet Explorer it worked.<br>
<br>
Maybe this helps.<br>
<br>
Regards<br>
stash<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://n2.nabble.com/GetFeatureInfo-Access-denied-tp4032182p4032903.html" target="_blank">http://n2.nabble.com/GetFeatureInfo-Access-denied-tp4032182p4032903.html</a><br>
Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
</font></blockquote></div><br>