getnetText url Length


[ Zettels Traum ] [ search / suche ]

>Hi all,
>        Does anyone know how long a URL can I feed to the getNetText command
>without getting into trouble? I want to send data to a CGI script, and
>I've read that the specification speaks of about 40KB as 'top boundary'.
>Without even testing it, I am most confident that Director does not
>handle _this_ lengths...
>        Can anyone tell?
>

hallo Martin,

a test says more than 50 experts unisono strong believes -

I wrote me a simple perl which emulates a huge WOM (write only memory) you
may send it any sort of data via GET and it will return the number of
bytes. Since I have an http server running under NT for testing purpose I
checked it there and even after I fed getNetText() with 2mb+ of string data
the maximum value returned was 4067. The url, excluding the query string,
was 29 chars so the limit appears to be 4 k brutto. I tried to feed
netscapes adress line with a looooong query string but somehow netscape
didn't really appreciate this and soon both netscape and the server called
dr.watson.

I put the perl on an apache webserver and approached it via getNetText()
the url w/o data had 48 chars and the maximum returned was 4048 bytes now.

Thus, I assume that the upperLimit for getnettext's url length is 4096 bytes.

Test it yourself, the perl lives at
<http://www.lingo.de/cgi-bin/dp_wom.pl?put+lots+of+data+here>


Best regards

Daniel Plaenitz





Dazu:























D. Plänitz