aboutsummaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-11-29 12:09:05 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-11-29 12:09:05 +0000
commit09717d3fc82a858620026538600c311a851dfe14 (patch)
treeff467cb343a630eecb8b2bcdae89cade14677e0d /tests/server
parent81a3246a569b3f20345d52dab8d9c94da1ffd890 (diff)
utility to base encode data passed on stdin
Diffstat (limited to 'tests/server')
-rw-r--r--tests/server/base64.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/server/base64.pl b/tests/server/base64.pl
new file mode 100644
index 000000000..2eab1fa4d
--- /dev/null
+++ b/tests/server/base64.pl
@@ -0,0 +1,9 @@
+#!/usr/bin/perl
+
+use MIME::Base64 qw(encode_base64);
+
+my $buf;
+while(read(STDIN, $buf, 60*57)) {
+ my $enc = encode_base64($buf);
+ print "$enc";
+}