Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to setup a WMS server using map server. As per the documentation, I have added the metadata required for WMS and trying to hit the following URL:


But eventually what I get is just the mapserv.exe which gets downloaded everytime.Could someone tell me where I could be wrong.

Thank you.

Below is the metadata for WMS

"wms_title" "WMS Demo Server" "wms_onlineresource" "http://localhost:8080/cgi-bin/mapserv.exe? MAP=C:/ms4w/Apache/htdocs/.../.../" "wms_srs" "EPSG:4269 EPSG:4326" "wms_feature_info_mime_type" "text/html" "wms_enable_request" "*"

And below is the request :


share|improve this question
up vote 4 down vote accepted

See the MapServer FAQ but this isn't actually the executable but the capabilities document and your browser doesn't recognize the mime type of application/vnd.ogc.xml

share|improve this answer
I have defined the mime type under the metadata as following : "wms_feature_info_mime_type" "text/html" – SNT Apr 17 '12 at 10:35
but capabilities documents have a mime type of application/vnd.ogc.xml – iant Apr 17 '12 at 10:36
please have a look at the question where I have pasted the metadata and the request URL. – SNT Apr 17 '12 at 10:48
please read the FAQ I linked to which answers this question. If you open up the file returned it is in fact xml inside. – iant Apr 17 '12 at 10:54
Thanks , it works fine now. – SNT Apr 17 '12 at 11:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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