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
相关推荐
广东大榕树信息科技有限公司几秒前
如何利用机房动环监控系统提升运维效率与安全性?
运维·网络·物联网·国产动环监控系统·动环监控系统
寺中人25 分钟前
飞猫M7随身WiFi去云控,解限速,改后台,改壁纸
网络·工具·随身wifi
缘友一世40 分钟前
软件定义网络SDN(10)复习
网络
HappRobot42 分钟前
OpenTelemetry和Jaeger、 SkyWalking的关系
linux·网络·skywalking
微爱帮监所写信寄信1 小时前
微爱帮监狱寄信写信系统后台PHP框架优化实战手册
android·开发语言·人工智能·网络协议·微信·https·php
Tandy12356_1 小时前
手写TCP/IP协议栈——TCP结构定义与基本接口实现
c语言·网络·c++·网络协议·tcp/ip·计算机网络
少云清2 小时前
【接口测试】4_PyMySQL模块 _操作数据库
服务器·网络·数据库
海清河晏1112 小时前
Linux进阶篇:网络编程
linux·运维·网络
一颗青果2 小时前
Socket编程实例(UDP)
网络·网络协议·udp
真上帝的左手2 小时前
7. 网络安全-等保
网络·安全·web安全