[mapserver-users] query templates & https?

Stephen Lime steve.lime at dnr.state.mn.us
Tue Jul 3 10:28:53 EDT 2001


It would if I weren't braindead when writing code. (I am getting better tho) To make this work
you need to edit 1 line in mapserv.h. Change the macro:

#define TEMPLATE_TYPE(s)  (((strncmp("http://", s, 7) == 0) || (strncmp("ftp://", s, 6)) == 0)  ? MS_URL : MS_FILE)

 to

#define TEMPLATE_TYPE(s)  (((strncmp("http://", s, 7) == 0) || (strncmp("https://", s, 8) == 0) || (strncmp("ftp://", s, 6)) == 0)  ? MS_URL : MS_FILE)

and recompile. That should flag your https as a URL template and everything should work. I have added this change to 
the CVS.

Steve

Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937

>>> Joel Schlagel <joel at crrel.usace.army.mil> 07/02/01 01:10PM >>>

is there a limitation to query templates that allows a url to be
identified with http, but not https?

if this works:

QUERY
  TEMPLATE "http://myserver/myprog?arg=[item] 
END

should this?

QUERY
  TEMPLATE "https://myserver/myprog?arg=[item] 
END


thanks


joel






More information about the mapserver-users mailing list