Re: Problems with Location: URI and CGI

David Crossley (davidc@erin.gov.au)
Fri, 7 Oct 94 19:50:44 EST


Yesterday I asked for help with a problem I was having with calling
consecutive CGI perl server scripts. I had one script that called
another using "Location: URI". This worked fine for short queries but
long queries got truncated at 256 char.

The problem is that the NCSA server truncates MIME headers to
MAX_STRING_LEN which defaults to 256. Rather than increasing the value
in httpd.h and recompiling the server I took the other approach of using
a better way to call the consecutive script.

I set the CGI environment variables SCRIPT_NAME, and QUERY_STRING and
called the next script using...
exec '/var1/httpd/cgi-bin/SFgate'

Works a dream. Thanks for your help.

If anyone would like to check out our WWW-WAIS gateway for serving
spatial environmental information please do so at...
http://kaos.erin.gov.au/general/spatial_data/query/sp_query_cont.html

David Crossley - Geographic Information Systems Manager
email: davidc@erin.gov.au
Australian Environmental Resources Information Network - ERIN