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

Stefano Barbato barbato at koanlogic.com
Wed Jul 23 13:09:10 EDT 2008


Hi Christian,

I didn't realized that I was using an unreleased version of klone :-)

Could you try using KLone 2.1.1rc9 please?

Update your top-level makefile and run 'make':

---[ Makefile ]---

KLONE_VERSION = 2.1.1rc9

... snip ...

------------------

bye,
s


On 23/lug/08, at 18:17, Christian Kelinski wrote:

> 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
>
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>





More information about the klone-users mailing list