[REBOL] Re: read bug? probably not!
From: gchiu::compkarori::co::nz at: 3-May-2001 23:14
On Wed, 2 May 2001 14:14:46 -0700
Holger Kruse <[holger--rebol--com]> wrote:
> My experience is that using very long URLs causes
> problems
> with some web servers and web browsers (e.g. Netscape
> 4.x,
> IIRC). We recently switched one of our internal CGI-based
> systems over from GET to POST because with GET the
> combination
> of Netscape and Apache caused problems with long URLs. As
I've done some more testing, and here's a test script
at http://www.compkarori.com/cgi-local/testcgi.r
#!/path/to/rebol -cs
REBOL [
Title: "testcgi.r"
File: %testcgi.r
Date: 3-May-2001
Author: [ "Graham Chiu" ]
Email: [ [gchiu--compkarori--co--nz] ]
category: 'web
]
if system/options/cgi/request-method = "GET" [
prin {Content-type: text/html^/^/<HTML>^/<HEAD>^/
<TITLE>Rebol GET test</TITLE>^/<BODY>server responds to
GET</BODY>^/</HTML>^/}
quit
]
prin {Content-type: text/html^/^/<HTML>^/<HEAD>^/
<TITLE>Rebol GET test</TITLE>^/<BODY>Not a GET
request</BODY>^/</HTML>^/}
Now, as you can see, this script just prints a message. It
doesn't actually do anything with the input. However, if
you feed it the same script as I used before, it kills this
script when the url length is greater than 4108 characters
with "Server response: HTTP/1.0 400 Bad Request"
The webserver is Apache.
--
Graham Chiu