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
相关推荐
王二端茶倒水15 小时前
宽带无线项目,怎么从一次性交付变成长期运营收入?
网络协议
Goodbye15 小时前
大模型无状态架构:从 HTTP 协议到 Harness AI 工程的深度解析
http
用户2530171996272 天前
第6篇:从技术到产品 — Ghost Proxifier 的设计哲学
网络协议
用户2530171996272 天前
第3篇:注入的艺术 — Ghost Proxifier 核心架构拆解
网络协议
王二端茶倒水3 天前
商业 WiFi 不是免费上网,而是门店数字化的入口
网络协议
霜落长河7 天前
抛弃TCP改用UDP,HTTP3怎么了?
http
网络研究院8 天前
2026年网络安全
网络·安全·法律·法规·趋势·发展
酣大智8 天前
ARP代理--工作原理
运维·网络·arp·arp代理
treesforest8 天前
AI安全系统如何识别异常访问?IP风险识别正在成为关键能力
网络·人工智能·tcp/ip·安全·web安全