- Jul 14, 2004
- 346
- 0
- 0
I have created a proxy that is connected to the browser and to the internet. I have set it up where I can block webpages and I need to display a stream of text saying: "403 Forbidden" or something.
I have created a BufferedWriter blocked = new BufferedWriter(new PrintWriter(outToclient)); // outToclient is a DataOutputStream
I then say blocked_message403.write(forbidden_message, 0, forbidden_message.length());
But this is just displaying a blank page with no text. What am I doing wrong? Any suggestions?
Thanks
I have created a BufferedWriter blocked = new BufferedWriter(new PrintWriter(outToclient)); // outToclient is a DataOutputStream
I then say blocked_message403.write(forbidden_message, 0, forbidden_message.length());
But this is just displaying a blank page with no text. What am I doing wrong? Any suggestions?
Thanks