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]>
Maity, Omprakash wrote:

Re: [FASTCGI] How to make FASTCGI deliver an external file

By doing "Location: employee_picture.jpg\n\n", the
response will go to the requester and will come back again to apache.
Isn't it?

Yes it will bounce.

But, what if we had something from the FASTCGI specification that would
simply instruct the http server to send the file ? Then the thing would
be solved on THE SAME REQUEST.

I believe this is a suggestion for the FASTCGI protocol specification...

----------

From: Jose Adriano Baltieri
[ mailto:jabaltie-a/[email protected] ]

Sent: Thu 7/13/2006 11:53 PM

To: Maity, Omprakash

Subject: Re: [FASTCGI] How to make FASTCGI deliver an external
file

Maity, Omprakash wrote:

You can do an internal redirect from fascgi module
to apache by adding the following lines to function do_work() in
mod_fastcgi.c.

ap_table_setn(r->headers_out, "Location",
new_request_url);

return REDIRECT;

See my former message. This is not so efficient.

----------

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/

--
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/
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.