Hi

thanks for your response

I would like to write a servlet that  intercepts http
requests, and optionally rebuilds and redirects
them to other (remote) servers.

Httpclient should work fine.

ehm .. which one ? the apache/commons ? I'm afraid that's a little too restricted...

Ideally, if you wish to have a tomcat servlet act a proxy server,
be sure you read the HTTP specs with respect to proxy servers.
There are many gotchas.
I don't think I need to. Tomcat should behave as a plain
webserver. Behind the scenes it fetches his data from elsewhere
on the web. The client doesn't need to know that.

so, maybe I shouldn't call it a proxy.

Before writing too much code and IF you are able to use apache,
it would be infinitely easier to use mod_proxy.
mod_proxy doesnt actually _do_ anything does it ? it
just proxies. I want to intercept the request and rebuild
it (with some app logic) before sending it on...

I'm surprised it seems so hard to do.
I imagined there would be something like
HttpServletRequest.dispatch(url) for remote
requests.

thanks,
*-pike
====================================
= 1/9671406556917033397649408 yottabyte
= 1/9444732965739290427392 zettabyte
= 1/9223372036854775808 exabyte
= 1/9007199254740992 petabyte
= 1/8796093022208 terabyte
= 1/8589934592 gigabyte
= 1/8388608 megabyte
= 1/1048576 Megabit
= 1/8192 kilobyte
= 1/1024 Kilobit
= 1/8 byte
= 1/4 nibble
bit = 1 bit


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to