3 if ($ENV{"QUERY_STRING"}) {
5 $cookie = $ENV{"QUERY_STRING"};
6 $data_size = $ENV{"CONTENT_SIZE"} || 1024;
9 $data_read = read(STDIN
, $data, $data_size);
11 $target = 's'.$ENV{"GOPHER_SELECTOR"}."\t"."gadl"."\t\t\r\n";
14 @lines = split /\n/, $data;
16 foreach $line (@lines) {
18 ($key, $val) = split /:/, $line;
24 $buffer .= " FORM [$key] = $val \n";
27 $buffer .= "Thank you for your submission! \r\n";
30 $mimetype = 'text/plain';
35 $target = 's'.$ENV{"GOPHER_SELECTOR"}."\t".$cookie."\t\t\r\n";
39 $buffer .= "Username: \nPassword: \nE-Mail: \n";
41 $mimetype = 'application/x-interactive';
44 $size = length $buffer;
45 print $size."\t".$mimetype."\r\n";