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
相关推荐
lifewange2 小时前
RPC 是什么
网络·网络协议·rpc
档案宝档案管理7 小时前
权限分级管控,全程可追溯,筑牢会计档案安全防线
运维·网络·人工智能
想成为优秀工程师的爸爸7 小时前
第十九篇技术笔记:UDP——相思传得快,飞鸽传书在
笔记·网络协议·tcp/ip·udp·信息与通信
Smart-佀8 小时前
涨薪秘技:智能家居中的BLE协议与实现
网络·arm开发·嵌入式硬件·microsoft
南京码讯光电技术有限公司8 小时前
工业级CPE,4G/5G+WiFi融合,破解严苛环境无线覆盖难题
网络·5g
ai_coder_ai9 小时前
在自动化脚本中如何实现网络访问?
网络·autojs·自动化脚本·冰狐智能辅助·easyclick
0xR3lativ1ty10 小时前
关闭公网IP的两种方式
网络协议·tcp/ip·php
被摘下的星星10 小时前
路由选择协议技术
网络·智能路由器
威联通安全存储11 小时前
跨国影视协同:SD-WAN 与边缘快取架构解析
网络
Element_南笙11 小时前
VGG网络-深度学习经典架构解析
网络·深度学习·架构