Thread Parameter bei SSI und CGI - oder warum funktioniert GET, POST aber nicht?
(33 answers)
Opened by Draussenduscher at 2012-11-08 08:42
test mal folgendes:
SSI test.shtml: Code: (dl
)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> CGI env.pl: Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 #!/usr/bin/perl use 5.008; use strict; use warnings; my $buffer; print "Content-Type: text/plain\n\n"; #print "$_ => ",$ENV{$_},"\n" for sort keys %ENV; print '=' x 30, "\n"; read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); print 'Buffer [', length $buffer, "], $buffer", "\n"; print '=' x 30, "\n"; |