HTTP 308 错误永久重定向 (Permanent Redirect)

HTTP 308 错误永久重定向 (Permanent Redirect)

测试环境访问另一个系统时报错
使用curl 测试

复制代码
curl --location --request POST 'http://xxxxx.cn/login' \ 

--header 'Content-Type: application/json' \
--data-raw '{
  "username": "admin",
  "password": "123456" 
}'
curl: (60) SSL certificate problem: self-signed certificate
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

结果说是证书问题 因为请求里面用的是http 测试环境没有配置

然后使用-k还会出现别的错误就不再演示

正确配置

xxxx.cn 这个域名指向 192.168.1.156 这个 IP 地址

复制代码
vim /etc/hosts

192.168.1.156   xxxx.cn
相关推荐
智能修复2 小时前
无法访问共享文件夹/打印机?深度解析“0x80070035”错误代码:网络凭证、防火墙与工作组设置的终极修复指南
网络·错误代码
zl_dfq6 小时前
Linux 之 【网络套接字编程】(固定宽度整数类型、socket常见API、netstat)
linux·网络
国科安芯9 小时前
医疗成像设备系统电源芯片国产替代可行性研究
网络·单片机·嵌入式硬件·fpga开发·硬件架构
枷锁—sha9 小时前
【CTFshow-pwn系列】03_栈溢出【pwn 053】详解:逐字节爆破!手写 Canary 的终极破解
网络·笔记·安全·网络安全
k7Cx7e10 小时前
宝塔域名强制SSL和带www的方法
网络·网络协议·ssl
czxyvX10 小时前
017-Linux-网络基础概念
linux·网络
Yefimov10 小时前
RFC 1323 —— TCP 的高性能进化之路
网络协议
Kaede613 小时前
IDC和ISP分别是什么意思,有什么区别?
网络·接口隔离原则
testpassportcn13 小时前
CISA 認證介紹|IT 審計與資安治理黃金證照
网络·学习·改行学it
中山六匹马14 小时前
2026中山B2B网站建设:如何结合GEO优化提升企业竞争力
大数据·网络·人工智能