Hi Marco,

As Thomas mentioned, you'll have to use a different way. If you're using MS4W you can use PHP MapScript to pass your mapfile to your PHP script, and then use CURL commands (already included as a PHP extension in MS4W) to download the remote mapfile locally to your server.

Something like: http://localhost/myapp/index.php?map=http://remotemachine/mymap.map

There are good examples of how to use CURL for this at: http://php.net/manual/en/ref.curl.php

-jeff



--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



On 2016-03-21 7:50 AM, Marco Afonso wrote:
Hi all,

It is possible to get a remote mapfile instead from a local path in the
cgi-variable?

For example, instead of:
http://localhost:8081/cgi-bin/mapserv.exe?map=/local/path/mymap.map

Something like:
http://localhost:8081/cgi-bin/mapserv.exe?map=http://remotemachine/mymap.map

Thank you!

--
Best Regards,
Marco Afonso
http://goo.gl/ZDtQjm



_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to