<br><font size=2 face="sans-serif">firebug found </font><tt><font size=2>OpenLayers.ProxyHost</font></tt><font size=2 face="sans-serif">
into example.js</font>
<br><font size=2 face="sans-serif">That is a script from mapfish used for
the print widget example.</font>
<br>
<br><font size=2 face="sans-serif">Just removed it and now it is working
with or without specifying the url in the parameters list of WMSGetFeatureInfo.</font>
<br>
<br><font size=2 face="sans-serif">Thanks for your help,</font>
<br><font size=2 face="sans-serif">Steve</font>
<br><font size=2 face="sans-serif"><br>
</font><font size=3 color=#0066ff><i>Steve Toutant, M. Sc.</i></font><font size=3><br>
Analyste en géomatique<br>
Secteur environnement<br>
Direction des risques biologiques, environnementaux et occupationnels<br>
Institut national de santé publique du Québec<br>
945, avenue Wolfe<br>
Québec, Qc G1V 5B3 </font>
<p><font size=3>Tél.: (418) 650-5115 #5281<br>
Fax.: (418) 654-3144</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:steve.toutant@inspq.qc.ca><font size=3 color=blue><u>steve.toutant@inspq.qc.ca</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://www.inspq.qc.ca/><font size=3 color=blue><u>http://www.inspq.qc.ca</u></font></a>
<p><font size=3> </font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Christopher Schmidt <crschmidt@metacarta.com>@openlayers.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : users-bounces@openlayers.org</font>
<p><font size=1 face="sans-serif">18/09/2009 10:05 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">Steve.Toutant@inspq.qc.ca</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">users@openlayers.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [OpenLayers-Users] WMSGetFeatureInfo
and proxy</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2>On Fri, Sep 18, 2009 at 09:27:15AM -0400, Steve.Toutant@inspq.qc.ca
wrote:<br>
> Hi,<br>
> I'm using WMSGetFeatureInfo to query a specific layer. The information
is <br>
> retrieved from the same server/domain where the application and mapserver
<br>
> are installed.<br>
> The answer I get is "The requested URL /cgi-bin/proxy.cgi was
not found on <br>
> this server."<br>
> I read this http://faq.openlayers.org/proxyhost/all/<br>
> and I already set a proxy on another server for another project.<br>
> <br>
> But in this case my understanding was that I don't need a proxy since
I'm <br>
> not querying a remote server. I can't see why my code is requesting
<br>
> /cgi-bin/proxy. It should call directly cgi-bin/mapserver? isn'it?<br>
> <br>
> Here is my code<br>
> infoControls = <br>
> {<br>
> click: new OpenLayers.Control.WMSGetFeatureInfo({<br>
> //url: 'http://IP
<br>
> address/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante_hlm.map&',
<br>
> maxFeatures:
12,<br>
> title: 'Identify
features by clicking',<br>
> layers: [overlays['HLM']],<br>
> queryVisible:
true,<br>
> infoFormat:'text/html'<br>
> })<br>
> }<br>
> infoControls['click'].events.register("getfeatureinfo",
this, showInfo);<br>
> map.addControl(infoControls['click']);<br>
> infoControls['click'].activate();<br>
> <br>
> If I uncomment the url parameter I got the same result.<br>
> What could be the reason why it is looking for a proxy?<br>
> This line IS NOT in my code<br>
> OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";<br>
<br>
If you type "OpenLayers.ProxyHost" into Firebug or some other
debugging tool,<br>
what does it tell you?<br>
<br>
-- Chris<br>
<br>
> <br>
> thanks<br>
> Steve<br>
<br>
> _______________________________________________<br>
> Users mailing list<br>
> Users@openlayers.org<br>
> http://openlayers.org/mailman/listinfo/users<br>
<br>
<br>
-- <br>
Christopher Schmidt<br>
MetaCarta<br>
_______________________________________________<br>
Users mailing list<br>
Users@openlayers.org<br>
http://openlayers.org/mailman/listinfo/users<br>
</font></tt>
<br>
<br>
<br>