The thing is that if the length is equal to maxline than it was truncated.
99.997% chance that is true.  You don't have to worry about people who just
happened to get a url of that length.  It won't happen.  If you are afraid it
will happen then increase $maxline by one.


On Friday 05 April 2002 06:23 pm, you wrote:
> On Fri, Apr 05, 2002 at 06:29:49PM -0600, David Walker wrote:
> > Return an error if the length is equal to $maxline
> > There is only the tiniest possibility that a url will come to exactly
> > that length and even then it is pretty long.
>
> Ah, I meant, return and error to the user if the URL he gave AOLserver
> is LONGER than $maxline.  Which is quite possible if, say, you have a
> some other script is hitting your Tcl page with a big huge list of URL
> parameters.
>
> Are you saying that there is no way to get the original length of the
> GET request, that it is truncated to $maxline before that length ever
> gets checked?  Is there any flag anywhere to say, "FYI, the GET
> request was truncated"?
>
> > On Friday 05 April 2002 06:00 pm, you wrote:
> > > On Fri, Apr 05, 2002 at 05:42:33PM -0600, Rusty Brooks wrote:
> > > > I believe it's the content length of the posted content.  I'm
> > > > assuming that you've already tried [ns_conn request] and that's
> > > > truncated?
> > >
> > > Hm, so ns_conn contentlength is only for POSTs?  Right, I tried it and
> > > [ns_conn request] is truncated if the GET request is longer than
> > > $maxline.

Reply via email to