• Post Reply Bookmark Topic Watch Topic
  • New Topic

ServletInputStream

 
nandkishor rao
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try using Apache's HTTPClient and that has something called MultipartPost for this requirement.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!