From owner-freebsd-questions Thu Mar 9 21:26:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from student.kgv.edu.hk (student.kgv.edu.hk [152.101.128.2]) by hub.freebsd.org (Postfix) with SMTP id 0E02137B7B1 for ; Thu, 9 Mar 2000 21:26:46 -0800 (PST) (envelope-from jryan@kgv.edu.hk) Received: (qmail 97791 invoked by uid 1552); 10 Mar 2000 05:26:43 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 10 Mar 2000 05:26:43 -0000 Date: Fri, 10 Mar 2000 13:26:43 +0800 (CST) From: John Ryan To: Alfred Perlstein Cc: freebsd-questions@freebsd.org Subject: Re: Please help: Buffers In-Reply-To: <20000309200557.V14279@fw.wintelcom.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message