Lines 78-84
Link Here
|
78 |
((HttpURLConnection) connection).setRequestMethod("POST"); |
78 |
((HttpURLConnection) connection).setRequestMethod("POST"); |
79 |
|
79 |
|
80 |
// If filename was specified then send the post using multipart syntax |
80 |
// If filename was specified then send the post using multipart syntax |
81 |
String filename = sampler.getFileField(); |
81 |
String filename = sampler.getFilename(); |
82 |
if ((filename != null) && (filename.trim().length() > 0)) { |
82 |
if ((filename != null) && (filename.trim().length() > 0)) { |
83 |
connection.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + BOUNDARY); |
83 |
connection.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + BOUNDARY); |
84 |
connection.setDoOutput(true); |
84 |
connection.setDoOutput(true); |