Re: How to make FASTCGI deliver an external file

kmeaw <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Jose Adriano Baltieri wrote:
> Suppose that you have a FASTCGI like this :
> 
> While there are requests()
>   if  request is not OK, say for security reasons, then
>       send a message to the browser and loop again
>   end if
>   // the request is OK, that is, authorized THEN...
>   // we need to send to the browser an external file
>   // that is on this path : C:\SOMEWHERE\DOWN\ON\THE\SERVER\HARDDISK\EMPLOYEE_PICTURE.JPG
> end While
> 
> 
> Can I do that DIRECTLY ? That is, withouth having to RE-READ that file 
> from inside FASTCGI itself ?
> 
> IOW, is there some special order or instruction that I can issue from 
> FASTCGI telling the http server :
> 
> "Hey http server, deliver THE FILE ON THIS PATH to the browser, will you ?"
> 
> I use something similar on a particular implementation of a webserver 
> API that we have here...
> 

You can send "Location: employee_picture.jpg\n\n".
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.