DefaultHttpClient client = getClient(request, getSocketReadTimeout());
URI url = getRequestURI(request);
HttpRequestBase method = createMethod(smethod, url, request);
if (prepareForwardingMethod(method, request, client)) {
if (smethod.equalsIgnoreCase("POST") || (smethod.equalsIgnoreCase("PUT"))) {
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
@SuppressWarnings("unchecked")
List<FileItem> fileItems = upload.parseRequest(request);