Personal tools
You are here: Home Documentation References Using the CGI Interface at the Commandline

3. Using the CGI Interface at the Commandline

Document Actions
Up one level

The CGI interface can be tested at the commandline by using the "QUERY_STRING" switch, such as:

mapserv "QUERY_STRING=map=/ms4w/apps/gmap/htdocs/gmap75.map&mode=map"

To suppress the HTTP headers, you can use the "-nh" switch, such as:

mapserv -nh "QUERY_STRING=map=/ms4w/apps/gmap/htdocs/gmap75.map&mode=map"

To save the output into an image file, use the pipe command such as:

mapserv -nh "QUERY_STRING=map=/ms4w/apps/gmap/htdocs/gmap75.map&mode=map" > test.png
by Jeff McKenna last modified 2008-07-17 15:08
Contributors: Steve Lime, Frank Koormann, Jeff McKenna, Daniel Morissette

Powered by Plone