diff options
Diffstat (limited to 'cgi-bin/sop_proxy.pl')
-rwxr-xr-x | cgi-bin/sop_proxy.pl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cgi-bin/sop_proxy.pl b/cgi-bin/sop_proxy.pl new file mode 100755 index 0000000..4a3b370 --- /dev/null +++ b/cgi-bin/sop_proxy.pl | |||
@@ -0,0 +1,18 @@ | |||
1 | #!/usr/bin/perl | ||
2 | |||
3 | # | ||
4 | # Perl Based Same Origin Proxy | ||
5 | # | ||
6 | |||
7 | $|=1; | ||
8 | |||
9 | srand; | ||
10 | use strict; | ||
11 | |||
12 | use Apache::Request; | ||
13 | use LWP::Simple; | ||
14 | |||
15 | my $r = Apache::Request->new(Apache->request); | ||
16 | $r->send_http_header('text/javascript'); | ||
17 | |||
18 | print get $r->param('site'); | ||