[6074] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

Re: Problems with Location: URI and CGI

daemon@ATHENA.MIT.EDU (David Crossley)
Fri Oct 7 06:09:39 1994

Date: Fri, 7 Oct 1994 11:04:00 +0100
Errors-To: listmaster@www0.cern.ch
Errors-To: listmaster@www0.cern.ch
Reply-To: davidc@erin.gov.au
From: davidc@erin.gov.au (David Crossley)
To: Multiple recipients of list <www-talk@www0.cern.ch>

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

home help back first fref pref prev next nref lref last post