• HOME
  • SEARCH
  • TOPICS
  • DATA

  • HTTP Content Type 和 Accept 的含义

    Content Type Content-Type是客户端告诉服务器,客户端携带的数据是什么格式的。 示例一 意思是告诉服务器,请求体中的文本是json格式。

    2024-01-30, Views: 910 , Topics: HTTP

  • Go 发送 HTTP 请求

    Get 内置了http.Get函数,可以直接发起Get请求。 v := url.Values{} v.Set("name", "Ava") v.Add("fri

    2023-09-21, Views: 939 , Topics: Go HTTP

  • curl error 18: transfer closed with outstanding read data remaining

    现象 curl发起请求时,请求体中包含了最后第二行错误信息。 ❯ curl -vv -s -o /dev/null http://localhost:8081/

    2023-08-31, Views: 2698 , Topics: curl HTTP

  • Spring Boot 3.2 RestClient 同步 HTTP 客户端

    HTTP 客户端 Spring 5.0提供了WebClient基于Spring WebFlux的异步HTTP客户端。 Spring 6.1提供了RestClie

    2023-07-19, Views: 1342 , Topics: Spring Boot HTTP

  • HTTP Bad chunk header 和 Illegal or missing hexadecimal sequence in chunked-encoding 解决方法

    错误信息 错误一 org.apache.http.MalformedChunkCodingException: Bad chunk header: {"a":[

    2023-03-14, Views: 2723 , Topics: HTTP

  • Spring Boot 单元测试 MockMvc 模拟 HTTP 请求

    MockMvc @WebMvcTest标注的单元测试类中,可以注入MockMvc对象。 @SpringBootTest标注的单元测试类,还需要加@AutoCon

    2022-10-17, Views: 2658 , Topics: Spring Boot 单元测试 HTTP

  • Spring Boot 实现 SSE 服务端推送事件

    SSE Sever Send Event,是HTTP协议中的一种,Content-Type为text/event-stream,能够保持长连接。 示例代码 Sp

    2022-09-28, Views: 10169 , Topics: Spring Boot HTTP SSE

  • Go 解决 HTTP 请求跨域问题

    解决 请求头中添加Access-Control-Allow-Origin和Access-Control-Allow-Headers。 func CustomRe

    2021-07-21, Views: 3606 , Topics: Go 跨域 HTTP

  • SpringMVC 中的 redirect 和 forward 区别

    代码 @Controller public class RedirectForwardController { @GetMapping("/test1

    2021-07-13, Views: 2641 , Topics: SpringMVC HTTP

  • Cookie 设置 HttpOnly 属性防篡改

    查看 Cookie 方式一 Chrome控制台中的Application下的Cookies。 查看 Cookie 方式二 在浏览器控制台Console中使用以下

    2021-03-06, Views: 3621 , Topics: HTTP Cookie

  • 解决 HTTP 请求参数中的加号被替换为空格问题

    现象 使用GET请求添加query string(?后的参数)或使用Content-Type为application/x-www-form-urlencoded

    2021-03-05, Views: 10580 , Topics: HTTP Java Tomcat

  • curl 命令遇到重定向时请求重定向后地址

    问题 当请求url时得到301重定向的状态码,而非实际重定向后的内容 curl http://www.zhangbj.com 输出 <html> &

    2020-12-04, Views: 5068 , Topics: curl HTTP

  • OpenResty 清除 Sever 头信息

    需求 HTTP返回的Header中不带Server字段。 方式 使用OpenResty自带并默认开启的headers-more-nginx-module模块清除

    2020-10-04, Views: 5438 , Topics: OpenResty HTTP

  • Spring Boot 请求转发和重定向

    区别 转发 由服务端完成; 地址栏不发生变化,显示的转发前的地址(针对浏览器); 只发生一次请求; 请求中携带的参数不会丢失; 重定向 服务端告诉浏览器或

    2020-03-28, Views: 13275 , Topics: Spring Boot Java HTTP

  • OpenResty 中使用 lua-resty-http 完成 HTTP 请求

    项目介绍 lua-resty-http是OpenResty版本的HTTP客户端,基于cosocket实现。 开源地址:https://github.com/le

    2020-03-04, Views: 16633 , Topics: OpenResty Lua HTTP

  • HTTP Content-Type 为 application/x-www-form-urlencoded 时注意事项

    注意 当Content-Type为application/x-www-form-urlencoded需要注意浏览器或网络请求框架会对请求参数进行url_enco

    2019-04-19, Views: 3692 , Topics: HTTP

  • HTTP 携带多个 Cookie 请求

    HTTP/1.1 Cookie 使用;封号分割 Cookie username=fendoudebb;password=test HTTP/2.0 Cookie

    2019-04-18, Views: 3779 , Topics: HTTP Cookie

  • Prev
  • 1
  • Next

©2025 沪ICP备18012661号-1 阿里云

Messages Sitemap GitHub