https
文章平均质量分 90
@summer@
这个作者很懒,什么都没留下…
展开
-
Java Nio(六)Java Nio实现高性能HTTP/HTTPS客户端
由以前的文章得知,http本质上是TCP连接,然后发送http约定的字节。我们知道系统用一个4四元组来唯一标识一个TCP连接:{local ip, local port,remote ip,remote port}原创 2021-06-21 18:39:54 · 854 阅读 · 0 评论 -
Received fatal alert: handshake_failure
在发送https请求的时候出现的握手失败,跟踪下日志,在连接之前加上 System.setProperty("javax.net.debug","ssl"); 设置个全局变量,使得Http对象打印出连接过程中的日志。用jdk1.8 得到trigger seeding of SecureRandomdone seeding SecureRandomAllow unsafe rene原创 2018-02-05 16:07:38 · 2426 阅读 · 0 评论 -
Unexpected end of file from server
发送请求的时候在请求头上加上cookie就可以了,cookie可以用浏览器打开看network原创 2019-10-06 19:25:01 · 3578 阅读 · 0 评论