Using a proxy to replace/modify http response data

1.3k Views Asked by At

I have wriite a small proxy (in Java), with the intention of modifying specific data from a web server response. The data is a deflate compressed XML file: only some of the elements do I want to actually be received by the client.

I have no problems with the proxy functionality, but when I try to send my modified xml in place of the server's response, the client receives nothing (web-debugger shows content length 0) - I am sending data though, atleast there IS data in my app being written to the Socket's output stream.

See here for more details and some Code. I won't post it twice.

0

There are 0 best solutions below