[6062] in www-talk@info.cern.ch
Re: Problems with Location: URI and CGI
daemon@ATHENA.MIT.EDU (Rob Hartill)
Thu Oct 6 13:47:06 1994
Date: Thu, 6 Oct 1994 18:42:34 +0100
Errors-To: listmaster@www0.cern.ch
Errors-To: listmaster@www0.cern.ch
Reply-To: hartill@ooo.lanl.gov
From: Rob Hartill <hartill@ooo.lanl.gov>
To: Multiple recipients of list <www-talk@www0.cern.ch>
>
> A problem that I have been grappling with for a while now is how to call
> the second script. We have successfully done this using "Location: URI".
>
> However long, complex queries such as that shown here get truncated after
> 255 (?) characters.
> So my question is...
>
> Is there a better way to call consecutive CGI scripts to avoid this problem
> or is there something that I am missing?
>
> Thanks for your help.
>
You could call the 2nd script directly from the 1st. I've done
this to call a choice of scripts from one form using multiple
submit buttons.
Just change a few of the environment variables e.g. SCRIPT_NAME,
QUERY_STRING, REQUEST_METHOD if necessary.
Also, this way the server doesn't get hit twice for the same request.
rob.