Make WordPress Core

source: trunk/sproxy.pl @ 3

Last change on this file since 3 was 3, checked in by saxmatt, 22 years ago

* empty log message *

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 666 bytes
Line 
1#!/usr/bin/perl
2print "Content-type: text/html\n\n";
3
4if ($ENV{'REQUEST_METHOD'} ne 'POST')
5{
6     print <<"HTML";
7     <HTML>
8     <BODY>
9     only method POST is supported here.
10     </BODY>
11     </HTML>
12
13HTML
14
15     exit;
16}
17
18read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
19@pairs = split(/&/, $buffer);
20foreach $pair (@pairs)
21       {
22        ($name, $value) = split(/=/, $pair);
23        $value =~ tr/+/ /;
24        $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
25        print $value;
26        if($name eq "f")
27                {
28                print "<textarea name=TextBox1>"
29                }
30        if($name eq "g")
31                {
32                print "</textarea><textarea name=TextBox2>"
33                }
34        if($name eq "h")
35                {
36                print "</textarea>"
37                }
38    }
39
40exit;
41 
Note: See TracBrowser for help on using the repository browser.