perl - How to use FastCGI to send an image -
i'm using apache mod_fcgid , fastcgi under apache. i'm trying write perl fcgi send images client browser. googled sending image file in perl fastcgi script, found nothing.
for example, if client requests <http://mydomain.com/perl-cgi/123.jpg>
, perl-cgi request , respond resized 123.jpg (this image located on apache server), how send image? found samples on internet sends plain text/html, didn't find out how send images.
thanks in advance!
rather copying files filesystem echo'ing them apache, why not use https://tn123.org/mod_xsendfile/ . response includes standard headers , special x-sendfile header. server module reads file filesystem , returns client.
Comments
Post a Comment