<br><font size=2 face="sans-serif">That works!</font>
<br><font size=2 face="sans-serif">Not sure to understand why though?</font>
<br>
<br><font size=2 face="sans-serif">thanks</font>
<br><font size=2 face="sans-serif">Steve</font>
<br>
<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>&nbsp; </font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>François Van Der Biest
&lt;francois.vanderbiest@camptocamp.com&gt;</b> </font>
<p><font size=1 face="sans-serif">18/09/2009 10:34 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>
<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>Hi Steve,<br>
<br>
What if you try with this url :<br>
 url: '/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante_hlm.map&amp;',<br>
<br>
F.<br>
<br>
On Fri, Sep 18, 2009 at 3:27 PM, &nbsp;&lt;Steve.Toutant@inspq.qc.ca&gt;
wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt; I'm using WMSGetFeatureInfo to query a specific layer. The information
is<br>
&gt; retrieved from the same server/domain where the application and mapserver<br>
&gt; are installed.<br>
&gt; The answer I get is &quot;The requested URL /cgi-bin/proxy.cgi was
not found on<br>
&gt; this server.&quot;<br>
&gt; I read this http://faq.openlayers.org/proxyhost/all/<br>
&gt; and I already set a proxy on another server for another project.<br>
&gt;<br>
&gt; But in this case my understanding was that I don't need a proxy since
I'm<br>
&gt; not querying a remote server. I can't see why my code is requesting<br>
&gt; /cgi-bin/proxy. It should call directly cgi-bin/mapserver? isn'it?<br>
&gt;<br>
&gt; Here is my code<br>
&gt; infoControls =<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; click: new OpenLayers.Control.WMSGetFeatureInfo({<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //url: 'http://IP<br>
&gt; address/cgi-bin/mapserv.exe?map=/ms4w/paccSante/map/paccsante_hlm.map&amp;',<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; maxFeatures:
12,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; title: 'Identify
features by clicking',<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; layers: [overlays['HLM']],<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; queryVisible:
true,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; infoFormat:'text/html'<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; })<br>
&gt; }<br>
&gt; infoControls['click'].events.register(&quot;getfeatureinfo&quot;,
this, showInfo);<br>
&gt; map.addControl(infoControls['click']);<br>
&gt; infoControls['click'].activate();<br>
&gt;<br>
&gt; If I uncomment the url parameter I got the same result.<br>
&gt; What could be the reason why it is looking for a proxy?<br>
&gt; This line IS NOT in my code<br>
&gt; OpenLayers.ProxyHost = &quot;/cgi-bin/proxy.cgi?url=&quot;;<br>
&gt;<br>
&gt;<br>
&gt; thanks<br>
&gt; Steve<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; Users@openlayers.org<br>
&gt; http://openlayers.org/mailman/listinfo/users<br>
&gt;<br>
&gt;<br>
</font></tt>
<br>
<br>
<br>