Skip to content

Java,HttpURLConnection,HttpClient 3.1,HttpClient 4.5.6

Notifications You must be signed in to change notification settings

MaugerWu/HttpClientDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

HttpClientDemo

· Java 实现 HTTP 请求的三种方法

  1. 通过 HttpURLConnection 去实现,HttpURLConnection是 Java 的标准类,是 Java 比较原生的一种实现方式。
  2. HttpClient 3.1 是org.apache.commons.httpclient下操作远程 URL 的工具包,虽然已不再更新,但现实工作中使用 HttpClient 3.1 的代码还是很多。
  3. HttpClient 4.5.6 是org.apache.http.client下操作远程 URL 的工具包,是目前的最新版本(2018-09-01)。

· 所需 jar 包

  1. commons-httpclient-3.1.jar
  2. httpclient-4.5.6.jar
  3. httpcore-4.4.10.jar

About

Java,HttpURLConnection,HttpClient 3.1,HttpClient 4.5.6

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages