I'm a newbie try to complete the following goal. We need a utility for capturing or intercepting HTTP responses then writing the output to a file for troubleshooting purposes; something like a sniffer, but without packet info.
I've tried various methods, but so far no success. I�ve tried using ServerOutputStream sOutStr = response.getOutputStream(). How do I write the output to a file? No write methods exist for writing ServerOutputStream to a file. I looked at some of the other streams, but none seem to fit my purposes or I missed the boat.
Any ideas because I�m confused. Hopefully, my description makes sense.