Raw Input



The httpd server can pass us information through standard input or an environment variable. (see web-exe.pl via http://www.stars.com/)

  if ($ENV{REQUEST_METHOD} eq GET){
    $RawInput = $ENV{QUERY_STRING} || $DefaultTitle;
    $RawInput =~ s/^($LinkPattern)/$DefaultRequest=$1/; 
  } 

if ($ENV{REQUEST_METHOD} eq POST){ read(STDIN, $RawInput, $ENV{CONTENT_LENGTH}); }

 

Last edited November 27, 1995
Return to WelcomeVisitors