Re: How to make FASTCGI deliver an external file
Jose Adriano Baltieri <jabaltie-a/[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Organization | UNIMEP |
| Message-ID | <[email protected]> |
Jason P Sage wrote:
> That would be as easy as making the out file have command set
>
> -----------------START---------------
> TYPE:JPG
> FILE:c:\pictures\house.jpg
> -----------------END-----------------
>
> versus
>
>
> -----------------START---------------
> TYPE:RAW
> Hi Mom, I am raw text - could be html - could be this stuff
> -----------------END-----------------
>
> Simple Parse of first line will do it.
> Then based on TYPE for things like JPG, the CGI stub would send out the
> right mime/type header if appropriate, or just stream the specified file
> >From the filename given in FILE:C:\SOMEFILE\HiMom.jpg
Hi Jason
I'm not worried about the mime type. This is not problem. The problem is
having to RE-READ the file from inside FASTCGI in order to send it.
I'm looking for an instruction or directive or order that I could use to
have FASTCGI simply saying :
"Hey web server , I have THIS file here stored. Could you send it for me ?"
If you do not have this directive, your FASTCGI will have to swallow the
whole file just to send it again to the http server (and this one to the
browser). Wouldn't it be smarter if you could ASK the http server to
send it ? After all, it is supposed that it does it pretty well for
static links.
This would be almost like having a direct (static) link to a file,
except that is passes through FASTCGI for evaluation.
Have I made myself clearer ?
--
Obrigado,
------------------------------------------------------------------------------
Jose Adriano Baltieri - Analista de Sistemas
DTI - CENTRO - UNIMEP - Universidade Metodista de Piracicaba
PIRACICABA - SP - Brasil - Fone : (19) 3124-1858
------------------------------------------------------------------------------
--
Obrigado,
------------------------------------------------------------------------------
Jose Adriano Baltieri - Analista de Sistemas
DTI - CENTRO - UNIMEP - Universidade Metodista de Piracicaba
PIRACICABA - SP - Brasil - Fone : (19) 3124-1858
------------------------------------------------------------------------------
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/