My geoserver WMS GetCapabilities request returns an XML file download popup. But I want to see xml result on my browser. And I want to request via ajax request. But could not.

WMS Get capabilities like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE WMT_MS_Capabilities SYSTEM "http://schemas.opengis.net/wms/1.1.1/capabilities_1_1_1.dtd" >

<WMT_MS_Capabilities version="1.1.1">
    <Title>Web Map Service</Title>
    <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://.."/>
              <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://..."/>

1 Answer 1


WMS till version 1.1.1 is using mime type application/vnd.ogc.wms_xml. Set your system to open such documents with a browser or use WMS 1.3.0 that is using mime type that is understood by browsers automatically.





  • Version 1.3.0 does not work that requested source. So is this a geoserver problem?
    – barteloma
    Commented Aug 16, 2017 at 13:02
  • Oh sorry, my requested link is Gowebcache capability service. I noticed now.
    – barteloma
    Commented Aug 16, 2017 at 13:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.