???????HttpClient????
??????HttpClient???HTTP/1.1????汾?????????Http??????GET??HEAD??POST??PUT??DELETE??TRACE??OPTIONS??HttpClient???????????£?HttpЭ???????????????????Э?顣??????????web????????????????????????в??????HttpЭ?飬???????????????????
???????jdk?е?java.net?????????Щ??????????????httpЭ??????????????????????????????£????????????????HttpClient?????????????????????????Ч????μ???????????????http??????
????????????HttpClient??????????httpЭ?飬?????http-aware??????????web?????????????????????????????????httpЭ??????????
????HttpClient????壺
?????????????HttpCore??????Http???????
???????????????????IO
???????????
????HttpClient???????????飺
????HttpClient???????????????????????httpЭ?鴫?????HttpClient??????????????Http?????HttpClient??????http?????????????????javascript?????????????content type????????????????httpclient????????????и???????????url???????????κκ?http???????????????
???????????????HttpClient????Maven?????
????<dependency>
????<groupId>org.apache.httpcomponents</groupId>
????<artifactId>httpclient</artifactId>
????<version>4.5</version>
????</dependency>
?????????????????????????
????1??  ??????
????sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
???????????????
??????????????????????
???????????????
?????????https://confluence.atlassian.com/download/attachments/180292346/InstallCert.java ????InstallCert.java????
????????InstallCert.java???????У?java InstallCert hostname?????磺java InstallCert www.163.com
????????????????????????????2?????????“ssecacerts”????顣
?????????????$JAVA_HOME/jre/lib/security???£?????????????