[Klone-users] Getting the URI of a non existing file from within a 404 error page

Christian Kelinski kelinski at gmail.com
Wed Jul 23 12:17:35 EDT 2008


Hi Stefano,

thanks for your quick response! It's good to know that it's possible
to get the request line from within a 404 error page. But:

I've tried the suggested request_get_client_request(request). It
returns NULL. By the way - I'm using klone version 2.1.0 as it could
be downloaded from
http://www.koanlogic.com/download/klone/klone-2.1.0.tar.gz.

So I downloaded the pure Makefile and ran it, which downloaded version
2.0.2 of klone. With this, the very same code returned the whole
request line (I first had to rename my 404.kl1 into e404.kl1 because I
got a error "error: invalid suffix "_kl1" on integer constant").

Back at klone-2.1.0 I renamed my 404.kl1 into e404.kl1, but still no
difference. I'm using a very simple webapp (just the index.kl1 from
the example and the e404.kl1 with only the line you posted). And it's
the same when requesting a existing page: request_get_client_request
returns NULL.

Greetings
Christian




More information about the klone-users mailing list