Hello,
I am writing a proxy.When a proxy works like transparent
"clientOut.write(response, 0, responseLength);"
clientOut is
"BufferedOutputStream clientOut = new BufferedOutputStream(pSocket.getOutputStream());"
All is works right,but when I change response array
"responseProxy = modi_content(response,word,color);"
"modi_content" is a function, who change original response.
After that, I want to write modified response in client stream
"clientOut.write(responseProxy, 0, responseProxy.length);".
The result is that, not all bytes from responseProxy are wrote in OutputStream and
the web page have no all source code and desplays incorrect in browser.
Do you have any ideas, where I make mistake and who is that mistake.
Thank you.