[mapguide-users] MapAgent parameters

James Card james.card at calcad.com
Thu Mar 30 12:06:19 EST 2006


On Wed, 29 Mar 2006 20:44:05 -0800, Jason Birch <Jason.Birch at nanaimo.ca>  
wrote:

> It's cool to be able to just call something like this: <URL:  
> http://localhost/mapguide/mapagent/mapagent.fcgi?OPERATION=GETMAPIMAGE&VERSION=1.0.0&MAPNAME=Sheboygan&LOCALE=en&MAPDEFINITION=Library%3A%2F%2FSamples%2FSheboygan%2FMaps%2FSheboygan.MapDefinition&FORMAT=PNG&SETVIEWCENTERX=-87.73&SETVIEWCENTERY=43.74&SETVIEWSCALE=5000&SETDISPLAYDPI=300&SETDISPLAYWIDTH=3000&SETDISPLAYHEIGHT=2100  
> >
>
> It would be nice if I could specify a userid on that line and have the  
> agent authenticate using that user with a blank password.  I would be  
> lazy enough to use this to enhance some existing cold fusion reports.

You can do this by embedding the user credentials in the URL, like this:  
<URL: http://UserID:Password@localhost/mapguide/mapagent/mapagent.fcgi?...  
>. However, some browsers block this or prompt the user with a  
confirmation dialog before submitting the request to the server, so it may  
still not do exactly what you'd hoped for.

-- 
James Card
California CAD Solutions, Inc.
209 578-5580 Voice
209 521-6493 FAX




More information about the Mapguide-users mailing list