Re: URL lengths
montulli@stat1.cc.ukans.edu (Lou Montulli)
Errors-To: listmaster@www0.cern.ch
Date: Thu, 17 Mar 1994 22:59:18 --100
Message-id: <9403172149.AA47568@stat1.cc.ukans.edu>
Errors-To: listmaster@www0.cern.ch
Reply-To: montulli@stat1.cc.ukans.edu
Originator: www-talk@info.cern.ch
Sender: www-talk@www0.cern.ch
Precedence: bulk
From: montulli@stat1.cc.ukans.edu (Lou Montulli)
To: Multiple recipients of list <www-talk@www0.cern.ch>
Subject: Re: URL lengths
X-Listprocessor-Version: 6.0c -- ListProcessor by Anastasios Kotsikonas
Content-Length: 1565
>
> > Are there any (known) limits on the lenghts of URLs? Im working on
> > something right now that needs to encrypt a LOT of information into a
> > 302 redirect and it appears to cause problems if the line gets too
> > long.
> There are no limits on the length of URL in HTML. But in libwww, the MIME
> header parsing code seems to limit the length of any field value to 256.
> This means that your redirect_url gets truncated. I could not confirm
> this, since MacMosaic does not support forms yet. If anyone patches it,
> can you mail the patch to me?
The value field is currently a staticly defined array of characters
with a set limit of 128 characters. It is defined that way due to
the fact that characters are added one at a time to the value field.
A real fix will require going to a chunck based structure or
doing multiple StrAllocCats which would seem horribly inefficient.
Since I'm lazy I just increased the VALUE_SIZE to 1024. That should
handle most of them until we can get a real solution.
:lou
--
**************************************************************************
* T H E U N I V E R S I T Y O F K A N S A S *
* Lou MONTULLI @ Ukanaix.cc.ukans.edu *
* Kuhub.cc.ukans.edu ACS Computing Services *
* 913/864-0436 Ukanvax.bitnet Lawrence, KS 66044 *
* Let's face it, I'm a nerd, why else would I have a sig file? *
**************************************************************************