??????????text/xml??????
??????1???????fiddler??????????????????????????????????????????

??????????????????????????????????????????

??????2???????HttpClient???post???????????????????????
Document doc = DocumentHelper.createDocument();                           //????document????
Element book = doc.addElement("book");                                    //????document??????????
book.addElement("title").addText("???′?");
book.addElement("author").addText("?????");
String body = book.asXML();                                               //Document???????string????
StringEntity reqEntity = new StringEntity(body);                          //??StringEntity????????????????
reqEntity.setContentType("text/xml");                                     //??????????????????
reqEntity.setContentEncoding("utf-8");                                    //??????????????????
HttpPost post = new HttpPost("http://example.com");                       //????HttpPost???????????
post.setEntity(reqEntity);                                                //????post???????
HttpResponse response = client.execute(post);                             //????http????
System.out.println("the request body is:"+EntityUtils.toString(reqEntity));   //????????????
System.out.println(response.getStatusLine().getStatusCode());                 //???http????????
?????????multipart/form-data??????
????????????application/x-www-form-urlencoded???????????????????????????????????????????????????multipart/form-data????HttpClient???????????HttpMime??????????????????????????MultipartEntity??????????????HttpEntity????
??????1???????fiddler??????????????????????????????????????????
????????????????ú????????????????upload file...

??????????????????????????????????png????

????????fiddler????????????????????????????????????????п?????????????????????????“?????”??boundary??????????“???????”?????????????????????????????????δ???????“??????????”????????ɡ????post?????????????????????30-40λ???????????????????????????????post????????????????????????????????е???????????????????ɡ?????????????????????????????Content-Type ???洫?????????????????????????????????????????????boundary????Σ????α???????????(???field?????С???????????????value??"form-data"??"Content-Disposition"??????????"name"??????field??ID?????????????????filename)
??????????????????????????????????????????

??????2???????HttpClient???post???????????????????????
????HttpPost post = new HttpPost("http://example.com");           //????HttpPost???????????
????MultipartEntity mutiEntity = new MultipartEntity();           //????MultipartEntity????
????File file = new File("C:UsershzsuixiangDesktopimage_20151117151539.png");
????mutiEntity.addPart("desc"??new StringBody("?????????"?? Charset.forName("utf-8")));     //????multiEntity?????????????
????mutiEntity.addPart("pic"?? newFileBody(file));post.setEntity(mutiEntity);             //????post????????
????HttpResponse  httpResponse = client.execute(post);                                   //???post????
????HttpEntity httpEntity =  httpResponse.getEntity();                                   //?????????????
??????????????????fiddler??HttpClient???post??????????????????????????????????????????????????????п???????????????????????????????г?????Щ?????в????д???????jar?????????????????????????
?????????飺http://www.jianshu.com/p/3b6d7aa2043a