in reply to Best way of doing CGI passthroughs

If you're not tied to the idea of the GET method (that is, creating a link with a query string), you might look to using POST (form submission).
<form method="POST" action="second_script.cgi"> <input type="hidden" name="username" value="whatever"> <input type="hidden" name="show_size" value="some ridiculous number li +ke 8 3/4"> <input type="hidden" name="belabor the point?" value="Yes & it's fun!" +> <input type="submit"> </form>
The best part about that is that you can use a heredoc or interpolate variables into the value sections. The browser or user agent will be the one to handle escaping the parameters correctly.

Using CGI, there's no need to wonder if users use GET or POST to send data. Your interface is the same.

Replies are listed 'Best First'.
RE: Re: Best way of doing CGI passthroughs
by stephen (Priest) on Nov 08, 2000 at 01:27 UTC
    Yes, unfortunately, I am constrained to using GET parameters for reasons too ticklish to tell. (I'm passing parameters to a bit of third-party software which does a GET-request which flashes a light that causes a highly-trained parrot to... oh never mind... :)

    However, your point is well made.

    stephen