From owner-freebsd-questions Thu Mar 9 23:15:29 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 00D2137B958 for ; Thu, 9 Mar 2000 23:15:27 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.9.3/8.9.3) id XAA01429 for questions@freebsd.org; Thu, 9 Mar 2000 23:47:22 -0800 (PST) Date: Thu, 9 Mar 2000 23:47:22 -0800 From: Alfred Perlstein To: questions@freebsd.org Subject: 1024 character input limit? (forw) Re: Please help: Buffers Message-ID: <20000309234722.E14279@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG There's probably 100 places I'd have to look to figure out where this limit is, does anyone have an idea? basically input is limited to 1024 characters... ----- Forwarded message from Matthew Enger ----- Date: Fri, 10 Mar 2000 14:20:06 +0800 (CST) From: Matthew Enger To: Alfred Perlstein cc: John Ryan Subject: Re: Please help: Buffers Message-ID: Hi Alfred, We are running it on the console, i.e. perl t.pl, holding down the "a" key and after 1024 "a"'s it will not accept any more. from, Matthew Enger menger@kgv.edu.hk On Thu, 9 Mar 2000, Alfred Perlstein wrote: > * John Ryan [000309 21:58] wrote: > > Hi Alfred, > > > > Matthew's script doesn't need a browser. you can run it from the command > > line in UNIX. The same program run under Linux doesn't exhibit this > > problem. > > I can't reproduce this: > > t.pl has your script in it... > > ~ % lptest 2000 5 | sed 's/ //g' | wc > 5 5 9900 > ~ % lptest 2000 5 | sed 's/ //g' | perl t.pl | wc > 5 5 9900 > ~ % uname -srm > FreeBSD 3.4-STABLE i386 > > how are you running this script? > > please give a better way to reproduce this. > > -Alfred > > > > > Regards > > John Ryan > > System Manager > > King George V School > > > > > > > > * Matthew Enger [000309 18:23] wrote: > > > > > > > > Hello, > > > > > > > > At the school I am attending we are running Squid 2.3.STABLE1 on FreeBSD 3.4- > > > > STABLE with cyberpatrol filters. We reciently discovered that if the URL > > > > entred into the squid redirect program for cyberpatrol is over 1024 > > > > characters the program will not recieve any more text. This is causing > > > > problems for some URI's being accessed through our proxy which are (for some > > > > odd reason) longer then 1024 characters. > > > > > > > > I wrote a perl script below to act as a redirector and it is having the same > > > > problem: > > > > > > > > #!/usr/bin/perl > > > > > > > > $|=1; > > > > use strict; > > > > > > > > while (<>) { > > > > my @X = split; > > > > my $url = $X[0]; > > > > chomp $url; > > > > > > > > print "$url\n"; > > > > } > > > > > > > > Does anyone know how I can change this limit for both C (the cyberpatrol > > > > program) and perl programs? > > > > > > You're not mentioning which browser you are using, but i know that > > > some if not all versions of MSIE don't work with URLs longer than > > > 1024 characters. > > > > > > -Alfred > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > > > > -- > -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > ----- End forwarded message ----- -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message