[Portugal] Pedido "ilegal" ao Geoserver

Fred Lehodey lehodey at gmail.com
Mon Apr 26 10:40:43 EDT 2010


João,
já tem uma resposta na lista OSGEO.

Fred.

On Mon, Apr 26, 2010 at 3:35 PM, Jonas Blasques <tilakapash at gmail.com>wrote:

> Boa Tarde, chamo-me João Blasques e neste momento trabalho  em web maps.
>
> Gostaria de vos fazer uma pergunta, que já fiz em outras mailing list porém
> não me responderam.
>
> A pergunta em baixo,
>
> Dede já obrigado por tudo e espero ouvir.vos em breve,
>
> João Blasques
>
>
>
> Hello to all,
>
> I am following the online instructions of OSGeo's Leveraging OGC Services
> with GeoExt <http://workshops.opengeo.org/geoext/> workshop.
>
>
> I have the following setup:
> Geoserver on localhost:8080
> Apache server on localhost
> Working proxy in OpenLayers.ProxyHost = "
> http://localhost/cgi-bin/proxy.cgi?url=";
>
> I am making a WFS request through GeoExt+Openlayers from my localhost to
> the geoserver at port 8080.
>
>
> OpenLayers.ProxyHost = "http://localhost/cgi-bin/proxy.cgi?url=";
> var store = new GeoExt.data.FeatureStore({
>
>                 proxy: new GeoExt.data.ProtocolProxy({
>                     protocol: new OpenLayers.Protocol.WFS({
>                         url: "http//localhost:8080/geoserver/wfs",
>                         version: "1.1.0",
>                         featureType: "topp:states",
>                         srsName: "EPSG:4326"
>                     })
>                 }),
>                 autoLoad: true
>             });
>
> These are the headers:
>
> URL
>
> http://localhost/cgi-bin/proxy.cgi?url=http%2F%2Flocalhost%3A8080%2Fgeoserver%2Fwfs
>
> Request Header
>
> POST /cgi-bin/proxy.cgi?url=http%2F%2Flocalhost%3A8080%2Fgeoserver%2Fwfs HTTP/1.1
> Host: localhost
> 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
>
>
>
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language: en-us,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 115
>
> Connection: keep-alive
>
>
> Content-Type: application/xml; charset=UTF-8
> Referer: http://localhost/projects/geoext/
> Content-Length: 304
> Pragma: no-cache
> Cache-Control: no-cache
>
>
>
> Request Body - XML Posted (this was made automatically by OpenLayers (or
> GeoExt, don't know which))
>
> <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS"
> version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs
> http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Query
> typeName="topp:states" srsName="EPSG:4326"/></wfs:GetFeature>
>
> Response Header
>
> HTTP/1.1 200 OK
> Date: Thu, 22 Apr 2010 13:46:27 GMT
> 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
>
>
>
> Keep-Alive: timeout=5, max=44
> Connection: Keep-Alive
> Transfer-Encoding: chunked
> Content-Type: text/plain
>
>
> Response Body
>
> Illegal request.
>
>
>
> 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 "Illegal request."
> Exactly my error message in the response body.
>
> ... but what does it mean ?
>
> I tried the proxy in other situations and it works.
>
>
> Anyone has any ideas ? They are deeply , deeply appreciated.
>
> Thanks, João
>
> --
> "Ajude um pouco ... já é muito"
> Projecto SOSIndia http://sosindia.net
> ---------------------------------------------
>
> Shoot for the moon,
> even if you miss it
> you will land among the stars.
> - Unknown
>
> -------------------------------------------------
>
> What if for a moment, as an experiment,
> you drop every belief that you have?
> - Unknown
>
> ---------------------------------------------------------------
>
> "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."
> —David Bohm, quantum physicist, 1917–1992
>
> _______________________________________________
> Portugal mailing list
> Portugal at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/portugal
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/portugal/attachments/20100426/21906843/attachment-0001.html


More information about the Portugal mailing list