Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: read bug? probably not!

From: brian:hawley at: 3-May-2001 14:57

Graham Chiu wrote:
>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.
Well, that may be an error in Apache. It should return a 414 (Request-URI Too Long). I suppose it's possible that the excessively long URL got mangled in transit, though. The HTTP standard warns against relying on URLs longer than 255 characters to work consistently. Something about older routers, proxies and servers (read, most ones out there) not being able to handle them. They suggest posting instead. Brian Hawley