From a form in JSP I'm doing HTTP POST to a server and in return the server sends a text file to save, which results in browser opening "Save as" dialog. I want to capture the data stream through code instead of requiring the user to 'save the file'. Basically, I need to consume the content of file through java code and this should be transparent to the user.
I tried reading the request inputstream, but there is no content in it.