mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-25 19:55:35 +00:00
Fixed paragraph overflow in tutorial PDF
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1570695 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9a2c4bc01a
commit
def5c423ab
@ -394,7 +394,8 @@ if (entity != null) {
|
||||
<classname>FileEntity</classname>.</para>
|
||||
<programlisting><![CDATA[
|
||||
File file = new File("somefile.txt");
|
||||
FileEntity entity = new FileEntity(file, ContentType.create("text/plain", "UTF-8"));
|
||||
FileEntity entity = new FileEntity(file,
|
||||
ContentType.create("text/plain", "UTF-8"));
|
||||
|
||||
HttpPost httppost = new HttpPost("http://localhost/action.do");
|
||||
httppost.setEntity(entity);
|
||||
|
Loading…
x
Reference in New Issue
Block a user