<HTML><HEAD>
<META content="text/html; charset=iso-8859-15" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928"></HEAD>
<BODY style="MARGIN: 4px 4px 1px">
<DIV>Hi Jorge and Chris</DIV>
<DIV>&nbsp;</DIV>
<DIV>OK - it appears my proxy is not allowing access to any external site. I can connect to internal web services, but not external ones. Will have to talk nicely to our network guru.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Robert</DIV>
<DIV><BR>&gt;&gt;&gt; Jorge Gustavo &lt;jgr@di.uminho.pt&gt; 13/09/2011 2:34 p.m. &gt;&gt;&gt;<BR>Hi Robert,<BR><BR>Instead of using just the URL in the browser, call the proxy.cgi in the <BR>browser, with the full URL.<BR><BR>Something like:<BR><A href="http://localhost/cgi">http://localhost/cgi</A>-bin/proxy.cgi?url=http://wfs.data.linz.govt.nz//wfs?version=1.0.0&amp;service=WFS&amp;request=GetFeature&amp;maxfeatu(...)<BR><BR>Also use the same proxy.cgi with and URL that should work, like:<BR><A href="http://localhost/cgi">http://localhost/cgi</A>-bin/proxy.cgi?url=http://www.openlayers.org<BR><BR>Or with just:<BR><A href="http://localhost/cgi">http://localhost/cgi</A>-bin/proxy.cgi?url=http://wfs.data.linz.govt.nz<BR><BR>I hope it helps,<BR><BR>Jorge<BR><BR>On 12-09-2011 16:53, Robert Sanson wrote:<BR>&gt; I am trying to access a WFS service from a remote server. I have added wfs.data.linz.govt.nz to my proxy.cgi script. Firebug is reporting an error in the response:<BR>&gt;<BR>&gt; &lt;Some unexpected error occurred. Error text was:&lt;urlopen error (10065, 'No route to host')&gt;<BR>&gt;<BR>&gt; Yet, If I take the URL sent and copy it into a Browser URL, I get GML returned correctly. The URL sent is like this:<BR>&gt;<BR>&gt; &lt;A href="http://wfs.data.linz.govt.nz//wfs?version=1.0.0&amp;service=WFS&amp;request=GetFeature&amp;maxfeatures=5&amp;typename=x823&amp;<A href="http://wfs.data.linz.govt.nz/">http://wfs.data.linz.govt.nz/</A>&lt;MY-KEY&gt;/wfs?version=1.0.0&amp;service=WFS&amp;request=GetFeature&amp;maxfeatures=5&amp;typename=x823&amp;bbox=172.5132794038,-43.710577165498,172.65692985022,-43.634349733512<BR>&gt;<BR>&gt; Any ideas why I get this error? My code is:<BR>&gt;<BR>&gt; var parwfs = new OpenLayers.Layer.Vector("WFS Parcels", {<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; strategies: [new OpenLayers.Strategy.BBOX()],<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; protocol: new OpenLayers.Protocol.HTTP({<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url: "&lt;A href="http://wfs.data.linz.govt.nz/http://wfs.data.linz.govt.nz/&lt;MY-KEY&gt;/wfs",<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; headers: {"Content-Type": "plain/text"},<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; params: {<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; version: "1.0.0",<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; service: "WFS",<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; request: "GetFeature",<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //srsName: "EPSG:2193",<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; maxfeatures: "5",<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; typename: "x823"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; },<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; format: new OpenLayers.Format.GML()<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; }),<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; projection: new OpenLayers.Projection("EPSG:4326"),<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; style: {strokeColor: "green", strokeWidth: 2, strokeOpacity: 0.5},<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; minScale: 50000,<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; visibility: false<BR>&gt; });<BR>&gt; map.addLayer(parwfs);<BR>&gt;<BR>&gt; Many thanks,<BR>&gt;<BR>&gt; Robert Sanson<BR>&gt;<BR>&gt;<BR>&gt; This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system.<BR>&gt;<BR>&gt; This message has been scanned for Malware and Viruses by Websense Hosted Security.<BR>&gt; www.websense.com<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; Users mailing list<BR>&gt; Users@lists.osgeo.org<BR>&gt; <A href="http://lists.osgeo.org/mailman/listinfo/openlayers">http://lists.osgeo.org/mailman/listinfo/openlayers</A>-users<BR><BR><BR>-- <BR>Jorge Gustavo Rocha<BR>Departamento de Informática<BR>Universidade do Minho<BR>4710-057 Braga<BR>Tel: 253604430 (Geral), 253604479 (Gabinete)<BR>Fax: 253604471<BR>Móvel: 910333888<BR>_______________________________________________<BR>Users mailing list<BR>Users@lists.osgeo.org<BR><A href="http://lists.osgeo.org/mailman/listinfo/openlayers">http://lists.osgeo.org/mailman/listinfo/openlayers</A>-users<BR></DIV></BODY></HTML>