[Portugal] Pedido "ilegal" ao Geoserver
Jorge Gustavo Rocha
jgr at di.uminho.pt
Mon Apr 26 10:48:07 EDT 2010
Olá João,
O teu problema parece muito simples.
Tens uma gralha no pedido. Onde está:
url: "http//localhost:8080/geoserver/wfs",
devia estar:
url: "http://localhost:8080/geoserver/wfs",
Ou seja, faltam-te dois pontos a seguir ao http.
Espero que os teus problemas *todos* sejam deste tamanho!
Um abraço e bom trabalho.
Jorge
Seg, 2010-04-26 às 15:35 +0100, Jonas Blasques escreveu:
> 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 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 lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/portugal
--
jorge gustavo rocha
departamento de informática
universidade do minho
4710-057 braga
portugal
N 41º33'44,5" W 8º23'40,5"
tel +351 253604470 fax +351 253604471 cel +351 927210173
More information about the Portugal
mailing list