httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: [PATCH] PR#232: work around netscape header problem
Date Thu, 17 Apr 1997 02:56:55 GMT
I've only tested with a .jpg ... if someone wants to toy with other files
I did it with a simple cgi I've included below.  I had to use
tcpdump/tcpshow to figure out what number to give to the cgi to pad the
header out to cause the bug.

Dean

#!/usr/local/bin/perl

die "what?" unless defined $ENV{'QUERY_STRING'};

print <<EOM;
Content-Type: image/jpeg\r
Content-Length: 4072\r
EOM
print "X: " . 'x' x $ENV{'QUERY_STRING'} . "\r\n\r\n";
open (FOO,"< /home/dgaudet/public_html/arthritis.jpg");
print <FOO>;
close (FOO);


Mime
View raw message