header
PostMethod.setHeader(key,value)
body
PostMethod.setEntity(HttpEntity)
HTTP protocol parameters
PostMethod.setParams(HttpParams)
connection manager
关闭相应的io对象即可,会自动回收连接到连接池。
@since 4.0
ClientConnectionManager
有两个自带的实现PoolingClientConnectionManager
和BasicClientConnectionManager
1 |
|
@since 4.3
HttpClientConnectionManager
有两个自带的实现PoolingHttpClientConnectionManager
和BasicHttpClientConnectionManager
1 |
|