You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Luis 'Champs' de Carvalho <ch...@tbn.com.br> on 2000/10/04 22:10:08 UTC

A really really weird use for subrequests...

	
	Hy, list people.
	
	I'm need build a rewriting proxy module for my apache.	The basic
idea is get a request, turn it on a proxy request as described in the
eagle book @ page 371, rewrite the $request->contents so the client will
come back to me when processing the next request and let apache follow the
content generation process and response phase as it allways do.
	
	I know how to make the transformation to a mod_proxy request.
	I also know that the mod_proxy will bring me the right page, so i
simply don't care about this stage.
	
	But i *really* *don't* *know* how to rewrite the response *before*
the mod_proxy sends it back to the client.
	
	Can i make the mod_proxy redirect using a sub-request, and still
have the contents (and headers, and everything else) to let apache handle
the response phase ?
	
	If not, how can i do this weird thing?
	
	thank you all in advance for any ideas!
	
	[]'z!

 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Luis 'Champs' de Carvalho   @@   @@       @@
 SysAdmin at TBN             @@   @@       @@
 mail to:champs@tbn.com.br @@@@@@ @@@@ @@@@@@
 http://www.tbn.com.br/    @@@@@@ @@@@ @@@@@@
 Phone: +55(011)3842.9967    @@   @@@@ @@
 "There's no spoon."         @@   @@@@ @@
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=




Re: A really really weird use for subrequests...

Posted by Luis 'Champs' de Carvalho <ch...@tbn.com.br>.
On Wed, 4 Oct 2000, Jim Winstead wrote:
>On Oct 04, Luis 'Champs' de Carvalho wrote:
>> 	Can i make the mod_proxy redirect using a sub-request, and still
>> have the contents (and headers, and everything else) to let apache handle
>> the response phase ?
>no.

	That's great.	
	there is any possible workarround?

>> 	If not, how can i do this weird thing?
>take a look at Apache::RewritingProxy.
>http://search.cpan.org/search?dist=Apache-RewritingProxy

	Thank you for the link, Jim.
	This was the base for my project.
	Take a look at http://www.sourceforge.net/projects/myproxy/
	
	I need something a litte better... 
	mod_proxy will help great... 
	Lack of ideas... 
	Any suggestions?
	
	thank you all again.

 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Luis 'Champs' de Carvalho   @@   @@       @@
 SysAdmin at TBN             @@   @@       @@
 mail to:champs@tbn.com.br @@@@@@ @@@@ @@@@@@
 http://www.tbn.com.br/    @@@@@@ @@@@ @@@@@@
 Phone: +55(011)3842.9967    @@   @@@@ @@
 "There's no spoon."         @@   @@@@ @@
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



Re: A really really weird use for subrequests...

Posted by Jim Winstead <ji...@trainedmonkey.com>.
On Oct 04, Luis 'Champs' de Carvalho wrote:
> 	Can i make the mod_proxy redirect using a sub-request, and still
> have the contents (and headers, and everything else) to let apache handle
> the response phase ?

no.

> 	If not, how can i do this weird thing?

take a look at Apache::RewritingProxy.

http://search.cpan.org/search?dist=Apache-RewritingProxy

jim