João,<br>já tem uma resposta na lista OSGEO.<br><br>Fred.<br><br><div class="gmail_quote">On Mon, Apr 26, 2010 at 3:35 PM, Jonas Blasques <span dir="ltr">&lt;<a href="mailto:tilakapash@gmail.com">tilakapash@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Boa Tarde, chamo-me João Blasques e neste momento trabalho  em web maps.<br><br>Gostaria de vos fazer uma pergunta, que já fiz em outras mailing list porém não me responderam.<br>
<br>A pergunta em baixo,<br><br>Dede já obrigado por tudo e espero ouvir.vos em breve,<br>

<br>João Blasques<br><br><br><br>Hello to all,<br><br>I am following the online instructions of OSGeo&#39;s <a href="http://workshops.opengeo.org/geoext/" target="_blank">Leveraging 
OGC Services with
 GeoExt</a> workshop.<br><br><br>I have the following setup:<br>Geoserver

 on localhost:8080<br>Apache server on localhost<br>Working proxy in 
OpenLayers.ProxyHost = &quot;<a href="http://localhost/cgi-bin/proxy.cgi?url=" target="_blank">http://localhost/cgi-bin/proxy.cgi?url=</a>&quot;;<br>

<br>I am making a WFS request through GeoExt+Openlayers from my 
localhost to the geoserver at port 8080.<br><br> <br>OpenLayers.ProxyHost

 = &quot;<a href="http://localhost/cgi-bin/proxy.cgi?url=" target="_blank">http://localhost/cgi-bin/proxy.cgi?url=</a>&quot;;<br>

var store = new GeoExt.data.FeatureStore({<br>                <br>               

 proxy: new GeoExt.data.ProtocolProxy({<br>                    protocol:
 new OpenLayers.Protocol.WFS({<br>                        url: 
&quot;http//localhost:8080/geoserver/wfs&quot;,<br>

                        version: &quot;1.1.0&quot;,<br>                        
featureType: &quot;topp:states&quot;,<br>                        srsName: 
&quot;EPSG:4326&quot;<br>                    })<br>                }),<br>

                autoLoad: true<br>            });<br><br>These are the 
headers:<br><br>URL<br><a href="http://localhost/cgi-bin/proxy.cgi?url=http%2F%2Flocalhost%3A8080%2Fgeoserver%2Fwfs" target="_blank">http://localhost/cgi-bin/proxy.cgi?url=http%2F%2Flocalhost%3A8080%2Fgeoserver%2Fwfs</a><br>




<br>Request Header<br><br><pre>POST /cgi-bin/proxy.cgi?url=http%2F%2Flocalhost%3A8080%2Fgeoserver%2Fwfs HTTP/1.1<br>Host: localhost<br>User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729) FirePHP/0.4<br>


<br><br>Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<br>Accept-Language: en-us,en;q=0.5<br>Accept-Encoding: gzip,deflate<br>Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7<br>Keep-Alive: 115<br>

Connection: keep-alive<br>
<br><br>Content-Type: application/xml; charset=UTF-8<br>Referer: <a href="http://localhost/projects/geoext/" target="_blank">http://localhost/projects/geoext/</a><br>Content-Length: 304<br>Pragma: no-cache<br>Cache-Control: no-cache<br>


<br><br></pre>
Request Body - XML Posted (this was made automatically by OpenLayers (or
 GeoExt, don&#39;t know which))<br><br><code>&lt;wfs:GetFeature 
xmlns:wfs=&quot;<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a>&quot;
 service=&quot;WFS&quot; version=&quot;1.1.0&quot; 
xsi:schemaLocation</code><code>=&quot;<a href="http://www.opengis.net/wfs" target="_blank">http://www.opengis.net/wfs</a> 
<a href="http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" target="_blank">http://schemas.opengis.net/wfs/1.1.0/wfs.xsd</a>&quot;
 
xmlns:xsi=&quot;<a href="http://www.w3.org/" target="_blank">http://www.w3.org</a></code><code>/2001/XMLSchema-instance&quot;&gt;&lt;wfs:Query


 typeName=&quot;topp:states&quot; srsName=&quot;EPSG:4326&quot;/&gt;&lt;/wfs:GetFeature&gt;</code><br><br>Response

 Header<br><br><pre>HTTP/1.1 200 OK<br>Date: Thu, 22 Apr 2010 13:46:27 GMT<br>Server: Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_python/3.3.1 Python/2.5.4 mod_jk/1.2.28 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1<br>


<br><br>Keep-Alive: timeout=5, max=44<br>Connection: Keep-Alive<br>Transfer-Encoding: chunked<br>Content-Type: text/plain<br></pre><br>Response

 Body<br><br><pre><code>Illegal request.<br><br></code></pre><br><br>I 
would guess it has to do with the prox.cgi (which
 I got from the ol site) because there is one line of code which says: 
print &quot;Illegal request.&quot;<br>Exactly my error message in the response 
body.<br>
<br>... but what does it mean ?<br><br>I tried the proxy in other 
situations and it works.<br><br><br>Anyone has any ideas ? They are 
deeply , deeply appreciated.<br><br>Thanks, João<br clear="all"><br>-- <br>&quot;Ajude um pouco ... já é muito&quot;<br>Projecto SOSIndia <a href="http://sosindia.net" target="_blank">http://sosindia.net</a><br>---------------------------------------------<br>


<br>Shoot for the moon,<br>even if you miss it<br>you will land among the stars.<br>- Unknown<br><br>-------------------------------------------------<br><br>What if for a moment, as an experiment,<br>you drop every belief that you have?<br>


- Unknown<br><br>---------------------------------------------------------------<br><br>&quot;We are all linked by a fabric of unseen connections. This fabric is constantly changing and evolving. This field is directly structured and influenced by our behavior and by our understanding.&quot;<br>


—David Bohm, quantum physicist, 1917–1992 <br>
<br>_______________________________________________<br>
Portugal mailing list<br>
<a href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/portugal" target="_blank">http://lists.osgeo.org/mailman/listinfo/portugal</a><br>
<br></blockquote></div><br>