HttpTester tester = new HttpTester(); tester.parse( "GET /uri HTTP/1.1\r\n"+ "Host: fakehost\r\n"+ "Content-Length: 10\r\n" + "\r\n"); System.err.println(tester.getMethod()); System.err.println(tester.getURI()); System.err.println(tester.getVersion()); System.err.println(tester.getHeader("Host")); System.err.println(tester.getContent());@author gregw @see org.mortbay.jetty.testing.ServletTester
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|