java - httpclient多次网络请求可不可以一直都是用同一个端口映射?
PHP中文网
PHP中文网 2017-04-17 16:35:51
0
3
351
PHP中文网
PHP中文网

认证0级讲师

reply all(3)
PHPzhong

See if this article is helpful to you.

HttpClient4.3 Tutorial Chapter 2 Connection Management

It’s best to read the English description on the official website Chapter 2. Connection management

Someone in OSChina raised a similar question about httpClient releasing links

Then, this article is about httpClient httpclient before 4.x, how to maintain the session

大家讲道理

Using a long connection when connecting can 有概率实现this requirement.
The use of ports in the HTTP protocol should be transparent to you. You cannot and do not need to know which specific port is actually used by the HTTP protocol provider to connect. If you want to achieve this requirement, you should rewrite HTTP yourself and never abandon these HTTP packets.

迷茫

Use HttpClientBuilder

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template