- or download this
/usr/bin/env GATEWAY_INTERFACE='CGI/1.1' REQUEST_METHOD='GET' PATH_INF
+O='/extra/path/elements' QUERY_STRING='name1=value1&name2=value2' /sr
+v/www/cgi-bin/some.cgi
- or download this
#!/bin/bash
export GATEWAY_INTERFACE='CGI/1.1'
...
export PATH_INFO='/extra/path/elements'
export QUERY_STRING='name1=value1&name2=value2'
exec /srv/www/cgi-bin/some.cgi
- or download this
#!/usr/bin/perl
# called as wrapper.pl name1 arg1 name2 arg2 ...
...
}
$ENV{'QUERY_STRING'}=join('&',@pairs);
exec('/srv/www/cgi-bin/some.cgi') or die "exec failed: $!";