HttpClient为用户提供了非常简洁的API来用于使用Http协议来通讯的应用,可以用于构建web browsers, web spiders, HTTP proxies, web service transport libraries, or systems that leverage or extend the HTTP protocol for distributed communication.
提供的功能:
* Implements HTTP versions 1.0 and 1.1
* Implements all HTTP methods, such as GET, POST, PUT, DELETE, HEAD, OPTIONS, and TRACE
* Supports communication using HTTPS and connections through HTTP proxies
* Supports authentication using Basic, Digest, and NT LAN Manager (NTLM) methods
* Handles cookies
* Implements all HTTP methods, such as GET, POST, PUT, DELETE, HEAD, OPTIONS, and TRACE
* Supports communication using HTTPS and connections through HTTP proxies
* Supports authentication using Basic, Digest, and NT LAN Manager (NTLM) methods
* Handles cookies
官方最简单的入门教程:http://jakarta.apache.org/commons/httpclient/tutorial.html
我们将以几个使用jsp写的应用来试验一下HttpClient的功能。
待续。