blob: 9596abbec1d0d4b2d9dff69eb2782f2d06c9d996 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/bin/perl -w
# flush the buffers after each print
select (STDOUT);
$| = 1;
print "Content-Type: image/jpeg\r\n";
print "Expires: Thu, 01 Dec 2003 16:00:00 GMT\r\n";
print "Cache-Control: no-store, no-cache, must-revalidate\r\n";
print "Pragma: no-cache\r\n";
print "\r\n";
sleep 2;
open(FILE, "green.jpg");
while (<FILE>) {
print $_;
}
close(FILE);
|