What exactly is the 'ns_conn contentlength' command really for?  The
docs say only, "ns_conn contentlength returns the number of bytes in
the content passed in."  In fact, that command is just returning the
conn->contentLength value out of the Ns_Conn structure.  But, what is
conn->contentLength really?

I thought I could use 'ns_conn contentlength' to check the length of
the URL, so that if the client passes in URL variables which exceed
the "ns/server/$server_name maxline" parameter (default 8192), I could
return an error message.  (If the URL is longer than maxline,
AOLserver silently truncates it.)  But when I do [ns_conn
contentlength] in AOLserver 3.3+ad13, it always seems to return 0.

So, is this 'ns_conn contentlength' just the wrong command to try to
use for this?  What is it really for?  And is there any way for me to
get the actual, pre-truncation length of the URL?

Thanks!

--
Andrew Piskorski <[EMAIL PROTECTED]>
http://www.piskorski.com

Reply via email to