jetty « Post « JSP-Servlet Q&A





1. jetty ServletTester to POST a file?    stackoverflow.com

Can I use jetty's ServletTester to send file by POST method? How? I tried to send raw request string:

 String reqString = "POST /avScan HTTP/1.1\r\n" +
      ...

2. Jetty: How could I use FilterHolder to "monitor" incoming HTTP POST requst contents?    stackoverflow.com

I tried to do...

Source

FilterHolder myHolder
    = new FilterHolder(new Filter() {
        public void init(FilterConfig fc) throws ServletException {
     ...