Wesley13 Wesley13
3年前
java常见的 http 请求库比较
java常见的http请求库有httpclient,RestTemplate,OKhttp,更高层次封装的feign、retrofit1、HttpClientHttpClient:代码复杂,还得操心资源回收等。代码很复杂,冗余代码多,不建议直接使用。2、RestTemplateRestTemplate:是Spring提供的用于访问
Wesley13 Wesley13
3年前
java伪造http请求多文件上传
importjava.io.File;importjava.io.IOException;importorg.apache.http.HttpResponse;importorg.apache.http.client.ClientProtocolException;importorg.apache.http.client.Ht
海军 海军
4年前
[前端必知 ]HTTP or TCP/IP 基础
<sectionid"nice"datatool"mdnice编辑器"datawebsite"https://www.mdnice.com"style"fontsize:16px;padding:010px;wordspacing:0px;wordbreak:breakword;wordwrap:break
Stella981 Stella981
3年前
Nginx HTTP 413 Request Entity Too Large
nginx做代理上传文件时返回HTTP413错误码,提示信息如下:413RequestEntityTooLargeTherequestedresourcedoesnotallowrequestdatawiththerequestedmethodortheamountofdataprovide
Easter79 Easter79
3年前
Tomcat处理HTTP请求源码分析(下)
很多开源应用服务器都是集成tomcat作为webcontainer的,而且对于tomcat的servletcontainer这部分代码很少改动。这样,这些应用服务器的性能基本上就取决于Tomcat处理HTTP请求的connector模块的性能。本文首先从应用层次分析了tomcat所有的connector种类及用法,接着从架构上分析了connector模块
Stella981 Stella981
3年前
HTTP中的Session和Cookie浅析
Cookie:(小饼干)一小段文本信息,伴随着用户请求和页面在Web服务和浏览器之间传递,Cookie包含每次用户访问站点时Web应用程序都可以读取的信息。(保存在客户端)如图所示:!(https://oscimg.oschina.net/oscnet/db9450075090284834255ff4dea32fdc792.png)C
Wesley13 Wesley13
3年前
JAVA访问http接口得到返回数据
第一种:publicstaticStringgetURLContent(StringurlStr){/网络的url地址/URLurlnull;/http连接/HttpURLConnectionhttpConnnull;///
Stella981 Stella981
3年前
C#通过HttpListener实现HTTP监听
代码:usingNLog;usingSystem;usingSystem.Diagnostics;usingSystem.IO;usingSystem.Net;usingSystem.ServiceProcess;usingSystem.Text;usingSy
Easter79 Easter79
3年前
SpringCloud项目,接口调用返回http 500
今天上班的时候,自己正在参与的SpringCloud项目出现了问题,原本上周五还正常的项目突然所有接口调用都是返回http500的错误。项目的状态是在Eureka上可以看到对应微服务是在线状态,然后在Swagger里面测试接口,发现接口间歇性调用失败,也就是题目中的http500的错误,如下图。至于是间歇性的原因在于这个服务在线上部署了一个,然后我