Return-Path: Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 62069 invoked by uid 500); 27 Aug 2001 12:44:12 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 62051 invoked from network); 27 Aug 2001 12:44:11 -0000 X-Authentication-Warning: rdu88-250-106.nc.rr.com: trawick set sender to trawick@attglobal.net using -f Sender: trawick@rdu88-250-106.nc.rr.com To: dev@httpd.apache.org Subject: Re: odd content length goings on References: From: Jeff Trawick Date: 27 Aug 2001 08:46:22 -0400 In-Reply-To: Message-ID: Lines: 54 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Status: O X-Status: X-Keywords: X-UID: 1371 Marc Slemko writes: > Erm... why would we be unable to read the data? > > I have the exact same CGI. If I have it output, for example, 6k of data > there is never a content-length. If I have it output, for example, 10k of > data, there is. is there some buffering or pausing going on which affects the length=6k case? I get a content-length for lengths up to 32K or so. ---------anylength.pl--------- #!/usr/local/bin/perl -w BEGIN { use CGI::Carp qw(fatalsToBrowser); } use strict; use CGI; my $q = new CGI; my $offset = $q->param('length'); my $i; if (!$offset) { die "Yo! I need an offset!"; } print "Content-type: text/html\n\n"; $i = 0; while ($offset > 0) { if (($i % 50) eq 0) { print "\n"; } else { print "1"; } ++$i; --$offset; } -------------------------- -- Jeff Trawick | trawick@attglobal.net | PGP public key at web site: http://www.geocities.com/SiliconValley/Park/9289/ Born in Roswell... married an alien...