HttpClient
共 2 篇文章
HttpClient3和HttpClient4性能比较
把这个帖子作为日记,记下来,如果title带有为什么,Javaeye会自动把它移到问答频道,重新输入一下,看看高手们的反应: 最近为了查一个问题,分别使用HttpClient3和HttpClient4发一个同样post请求到同一个server上,发现 HttpClient3比HttpClient4性能要好很多,测试结果是H3,平均时间是800ms,而httpClient4要3秒钟,代码如下: import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import j…
2010-07-19 15:19 · HttpClient · Google · Apache · thread
HttpClient 中自定义SSL
当下面两种情况的SSL,用HttpClient建立连接时,需要使用自定义SSL: Ability to accept self-signed or untrusted SSL certificates. This is highlighted by an SSLException with the message Unrecognized SSL handshake (or similar) being thrown when a connection attempt is made. You want to use a third party SSL library instead of …
2010-02-25 15:18 · HttpClient · SUN