Library and examples of parsing multipart/form-data from inputstream

Example code using deprecated constructor: import java.io.ByteArrayInputStream; import org.apache.commons.fileupload.MultipartStream; public class MultipartTest { // Lines should end with CRLF public static final String MULTIPART_BODY = “Content-Type: multipart/form-data; boundary=–AaB03x\r\n” + “\r\n” + “—-AaB03x\r\n” + “Content-Disposition: form-data; name=\”submit-name\”\r\n” + “\r\n” + “Larry\r\n” + “—-AaB03x\r\n” + “Content-Disposition: form-data; name=\”files\”; filename=\”file1.txt\”\r\n” + “Content-Type: text/plain\r\n” + “\r\n” + “HELLO WORLD!\r\n” … Read more