[mapguide-users] wms: request=get... => save mapagent.fcgi

Chris Claydon chris.claydon at autodesk.com
Tue Sep 5 12:57:24 EDT 2006


As dictated by the Open GIS Consortium's WMS spec, the default mime type returned for these requests is: application/vnd.ogc.wms_xml

 

A WMS client program should support this mime type. However your browser probably doesn't know what to do with it, and it prompts you to save the response to a file.

 

If you want to look at the capabilities in your browser, you can add an extra parameter to request a text/xml response instead. i.e.

 

http://.../mapguide/mapagent/mapagent.fcgi?REQUEST=GETCAPABILITIES&SERVICE=WMS&FORMAT=text/xml

 

A more complex approach would be to add the following registry key definition, so that your browser knows what to do with the original mime type (note that you should always back up your registry before making any modifications):

 

[HKEY_CLASSES_ROOT\Mime\Database\Content Type\application/vnd.ogc.wms_xml]

"CLSID"="{48123BC4-99D9-11D1-A6B3-00C04FD91555}"

"Extension"=".xml"

"Encoding"=hex:08,00,00,00

 

The GetMap request requires a mandatory format parameter, such as FORMAT=image/png. However if something goes wrong it will return an error message in application/vnd.ogc.wms_xml format. In such cases you can simply save the response to a file and open it with a text editor.

 

I hope this information helps.

 

Chris Claydon.

 

  _____  

From: Axel Dörr [mailto:a.doerr at doerrib.de] 
Sent: martedì 5 settembre 2006 10.36
To: users at mapguide.osgeo.org
Subject: [mapguide-users] wms: request=get... => save mapagent.fcgi

 



Hello List,

when i send the following request to my server:

http://.../mapguide/mapagent/mapagent.fcgi?REQUEST=GETCAPABILITIES&SERVICE=WMS

i dont get the expected answer but i'm asked if want to open or save the mapagent.fcgi.
It is of course the same thing with getmap.

What's wrong?

I think i've seen this question already from someone else, but i can't find it anymore. Sorry for this.

Regards,

Axel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20060905/d0bb1ea7/attachment.html


More information about the Mapguide-users mailing list