https://bz.apache.org/bugzilla/show_bug.cgi?id=59016

            Bug ID: 59016
           Summary: Software caused connection abort: socket write error
           Product: Apache httpd-test
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: flood
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 33562
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33562&action=edit
error png

I am trying file upload with httpPost request (by MultipartEntityBuilder) in
java. But i get a Software caused connection abort: socket write error.

            File file = new File(filePath);
            String message = csrf_token;
            MultipartEntityBuilder builder = MultipartEntityBuilder.create();
            builder.setMode(HttpMultipartMode.BROWSER_COMPATIBLE);
            builder.addBinaryBody("imagefilename", file,
ContentType.DEFAULT_BINARY, file.getName());
            builder.addTextBody("csrf_token", message,
ContentType.DEFAULT_BINARY);
//
            HttpEntity entity = builder.build();
            httpPost.setEntity(entity);
            HttpResponse response = httpClient.execute(httpPost);

httpmime: 4.5.1
httpcore: 4.4.4

error is attachment

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to