Mercurial Hosting > luan
comparison core/src/luan/modules/url/MultipartClient.java @ 726:14f136a4641f
use enctype for multipart/form-data
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 09 Jun 2016 18:43:32 -0600 |
parents | a741a3a33423 |
children |
comparison
equal
deleted
inserted
replaced
725:a741a3a33423 | 726:14f136a4641f |
---|---|
55 for( Object obj : list ) { | 55 for( Object obj : list ) { |
56 String val = (String)obj; | 56 String val = (String)obj; |
57 out.write(__DASHDASH); | 57 out.write(__DASHDASH); |
58 out.write(boundaryBytes); | 58 out.write(boundaryBytes); |
59 out.write(__CRLF); | 59 out.write(__CRLF); |
60 // if (contentType != null) | |
61 // out.write(("Content-Type: "+contentType).getBytes(__ISO_8859_1)); | |
62 // out.write(__CRLF); | |
63 out.write(("Content-Disposition: form-data; name=\""+name+"\"").getBytes(__ISO_8859_1)); | 60 out.write(("Content-Disposition: form-data; name=\""+name+"\"").getBytes(__ISO_8859_1)); |
64 out.write(__CRLF); | 61 out.write(__CRLF); |
65 out.write(__CRLF); | 62 out.write(__CRLF); |
66 out.write(val.getBytes()); | 63 out.write(val.getBytes()); |
67 out.write(__CRLF); | 64 out.write(__CRLF); |