My Servlet is using request.getInputStream() to get a zip file. And my problem is I have to test this servlet so I am writing a class that can call my Servlet but the problem is I don't know how to set the InputStream. Can anyone please provide me with the code.
posted 9 years ago
Try using Apache's HTTPClient and that has something called MultipartPost for this requirement.