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
相关推荐
liu****1 小时前
27.epoll(三)
服务器·开发语言·网络·tcp/ip·udp
云飞云共享云桌面1 小时前
如何降低非标自动化工厂的研发软件采购成本
运维·服务器·网络·数据库·性能优化·自动化
时代新威powertime3 小时前
等保三级|安全通信网络自评估指南
网络·安全·等保测评
国服第二切图仔3 小时前
检测隧道HTTP代理的可用性的几种方法
网络·网络协议·http
托尼吴3 小时前
REST RPC dubbo,HSF 协议总结
网络协议·rpc·dubbo
JH30734 小时前
引依赖包和对这个包发起rpc调用有什么区别
网络·网络协议·rpc
tan180°4 小时前
Linux网络TCP(上)(11)
linux·网络·c++·后端·tcp/ip
席万里4 小时前
关于Go的init函数执行顺序#黑魔法
开发语言·网络·golang
Evand J5 小时前
【TCN与LSTM例程】TCN(时间卷积网络)与LSTM(长短期记忆)训练单输入单输出,用于拟合一段信号,便于降噪。MATLAB
网络·人工智能·matlab·lstm
程序员小单5 小时前
WebSocket 与 Spring Boot 整合实践
spring boot·websocket·网络协议