View | Details | Raw Unified | Return to bug 37716
Collapse All | Expand All

(-)C:/Documents and Settings/Benjamin/Mes documents/workspaces/workspaceApache/jakarta-jmeter-rel2.1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java (-1 / +1 lines)
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);

Return to bug 37716