![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HTTP
大爱一生
这个作者很懒,什么都没留下…
展开
-
详解HttpURLConnection
请求响应流程设置连接参数的方法setAllowUserInteractionsetDoInputsetDoOutputsetIfModifiedSincesetUseCachessetDefaultAllowUserInteractionsetDefaultUseCaches设置请求头或响应头HTTP请求允许一个key带多个用逗号分开的values,但是HttpURLConnection只提供了单...原创 2018-06-21 11:24:00 · 212 阅读 · 0 评论 -
HttpURLConnection请求到响应
HttpURLConnection conn = null; InputStream is = null; BufferedReader reader = null; String msg; try {//httpUrl=http://localhost:18080/promptfile/sendErrorMessage?us...原创 2018-06-21 11:29:31 · 1662 阅读 · 0 评论 -
JDK发送Http请求
HttpURLConnection conn = null; InputStream is = null; BufferedReader reader = null; String msg; try { String sClientVersion = String.valueOf(clientVersio...原创 2018-06-07 17:04:22 · 2287 阅读 · 0 评论 -
RPC服务和HTTP服务对比
很长时间以来都没有怎么好好搞清楚RPC(即Remote Procedure Call,远程过程调用)和HTTP调用的区别,不都是写一个服务然后在客户端调用么?这里请允许我迷之一笑~Naive!本文简单地介绍一下两种形式的C/S架构,先说一下他们最本质的区别,就是RPC主要是基于TCP/IP协议的,而HTTP服务主要是基于HTTP协议的,我们都知道HTTP协议是在传输...转载 2018-07-07 10:36:00 · 131 阅读 · 0 评论 -
RequestForwardUtil
// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // import java.io.BufferedReader; import java.io.IOException; import java.io.UnsupportedEncodingEx...转载 2019-04-20 14:39:17 · 187 阅读 · 2 评论