perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerald Richter - ECOS <>
Subject AW: Can't set $epreq->apache_req->status on Apache 2.2
Date Fri, 18 Oct 2013 10:46:43 GMT
Hi Frank,

doing an exit (404) should set the status code


Von: Frank Wesemann [] 
Gesendet: Freitag, 11. Oktober 2013 21:59
Betreff: Can't set $epreq->apache_req->status on Apache 2.2


I do have .ep files, that deliver binary content from a database to browsers (generated images
which are requested via <img src="showImage.ep?id=99">).

If an image isn't in the DB I am setting

$epreq->apache_req->status_line("404 Not found");
$http_headers_out{'Content-Type'} = "text/plain; charset=ISO-8859-1";

print OUT "The image can't be found";


And the browser get's an 404 and shows a broken image (or nothing nowadays).

This works like a charme in my development environment under Apache 2.0.55.

In the production environment under Apache 2.2.3 the status line isn't set, so the browser
gets an "200 OK" status.

In both environments EMBPERL_OPTIONS is 270338.

Embperl Version is 2.3.0

Is this an known issue?

Did the Apache API change?

Anything else that might be different?

Any thoughts welcome.


mit freundlichem Gruß,


Frank Wesemann

Fotofinder GmbH         USt-IdNr. DE812854514

Software Entwicklung    Web: <>

Potsdamer Str. 96       Tel: +49 30 25 79 28 90

10785 Berlin            Fax: +49 30 25 79 28 999


Sitz: Berlin

Amtsgericht Berlin Charlottenburg (HRB 73099)

Geschäftsführer: Ali Paczensky



View raw message