[OpenLayers-Users] WMSGetFeatureInfo - page not found-message

Brent Pedersen bpederse at gmail.com
Thu Jul 9 12:49:01 EDT 2009


from:
http://docs.openlayers.org/library/request.html
"""In general, all communication initiated by OpenLayers.Request
methods is restricted to the same origin policy: requests may only be
issued with the same protocol, to the same domain, and through the
same port as the document the code is running from."""

you're trying a different port.


On Thu, Jul 9, 2009 at 1:41 AM, Per S<per.soderstrom at kungsbacka.se> wrote:
>
> When I use WMSGetFeatureInfo I get a page not found message (HTTP 404) from
> IIS, but when I paste the Url params below in the address field of a browser
> (Firefox or IE) a get a correct response.
>
> Part of the code (coming from Open Layers Feature Info Example):
> var infoControls = {
>    click: new OpenLayers.Control.WMSGetFeatureInfo({
>        url: 'http://pc00013:8080/geoserver/wms',
>        title: 'Identify features by clicking',
>        layers: [dp_polygoner],
>        queryVisible: true
> }), ...
>
> Some info from Firebug:
>
> Url params:
> http://pc00013:8080/geoserver/wms?service=WMS&version=1.1.0&request=GetFeatureInfo&layers=Kba%3Adetaljplaner
> &query_layers=Kba%3Adetaljplaner&styles=&bbox=158948.95%2C6357669.1%2C163988.95%2C6359701.1&srs=EPSG
> %3A3007&feature_count=10&x=447&y=107&height=508&width=1260&info_format=text%2Fhtml
>
> Response Headers:
> Server  Microsoft-IIS/5.1
> Date    Thu, 09 Jul 2009 07:16:06 GMT
> Connection      close
> Content-Length  4072
> Content-Type    text/html
>
> Request Headers:
> Host    pc00013
> User-Agent      Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.9.0.4)
> Gecko/2008102920 Firefox/3.0.4
> Accept  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language sv-se,sv;q=0.8,en-us;q=0.5,en;q=0.3
> Accept-Encoding gzip,deflate
> Accept-Charset  UTF-8,*
> Keep-Alive      300
> Connection      keep-alive
> Referer http://pc00013/openlayers/openlayers_gs.html
>
> Any ideas?
>
> /Per S
> --
> View this message in context: http://n2.nabble.com/WMSGetFeatureInfo---page-not-found-message-tp3230272p3230272.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>



More information about the Users mailing list