Removed reference to deprecated methods

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1030514 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2010-11-03 16:12:45 +00:00
parent b2ad050679
commit 6959830c70
1 changed files with 2 additions and 4 deletions

View File

@ -36,6 +36,7 @@ import org.apache.http.entity.mime.MultipartEntity;
import org.apache.http.entity.mime.content.FileBody;
import org.apache.http.entity.mime.content.StringBody;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.util.EntityUtils;
/**
* Example how to use multipart/form encoded POST request.
@ -69,11 +70,8 @@ public class ClientMultipartFormPost {
System.out.println(response.getStatusLine());
if (resEntity != null) {
System.out.println("Response content length: " + resEntity.getContentLength());
System.out.println("Chunked?: " + resEntity.isChunked());
}
if (resEntity != null) {
resEntity.consumeContent();
}
EntityUtils.consume(resEntity);
}
}