Hello,
I am writing a proxy.When a proxy works like transparent
"clientOut.writ e(response, 0, responseLength) ;"
clientOut is
"BufferedOutput Stream clientOut = new BufferedOutputS tream(pSocket.g etOutputStream( ));"
All is works right,but when I change response array
"responsePr oxy = modi_content(re sponse,word,col or);"
"modi_conte nt" is a function, who change original response.
After that, I want to write modified response in client stream
"clientOut.writ e(responseProxy , 0, responseProxy.l ength);".
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.
I am writing a proxy.When a proxy works like transparent
"clientOut.writ e(response, 0, responseLength) ;"
clientOut is
"BufferedOutput Stream clientOut = new BufferedOutputS tream(pSocket.g etOutputStream( ));"
All is works right,but when I change response array
"responsePr oxy = modi_content(re sponse,word,col or);"
"modi_conte nt" is a function, who change original response.
After that, I want to write modified response in client stream
"clientOut.writ e(responseProxy , 0, responseProxy.l ength);".
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.
Comment