jetty « Post « JSP-Servlet Q&A

1. jetty ServletTester to POST a file?

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?

I tried to do...


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