Leser: 1
4 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
path = "../cgi-bin/";
lvOut = new LoadVars();
laden.onRelease = function()
{
lvOut.user = "andi"
lvOut.send(path+"posttest.pl", "_blank", "POST");
};
xmlladen.onRelease = function()
{
loginXML = new XML();
loginElement = loginXML.createElement("LOGIN");
loginElement.attributes.user = "andi";
loginXML.appendChild(loginElement);
loginXML.send(path+"posttest.pl", "_blank", "POST");
}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/usr/bin/perl -w print "Content-type: text/html\n\n"; if($ENV{'REQUEST_METHOD'} eq 'GET') { print "GET!<br>"; print $ENV{'QUERY_STRING'}; } else { $cont_length = $ENV{'CONTENT_LENGTH'}; read(STDIN, $Daten, $cont_length, 0); print"POST! cont_length = $cont_length<br>"; print "Daten: $Daten"; }
peyot-l+2008-01-21 19:01:27--[...]
POST! cont_length = 59
Daten:
[...]
1 2 3 4 5 6 7 8 9 10 11 12
#!/usr/bin/perl use strict; use warnings; use CGI qw/:standard/; use XML::Simple; use Data::Dumper; my $params = XMLin(param('POSTDATA')); print header(-type => 'text/plain'); print Dumper $params;
4 Einträge, 1 Seite |