使用截击的HTTPS请求

编程入门 行业动态 更新时间:2024-10-26 14:37:43
本文介绍了使用截击的HTTPS请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有人可以向我展示任何示例,如何使用排球库执行POST或GET请求,并使用知名CA颁发的证书对服务器进行处理吗?与标准http请求相比,我是否需要更改任何内容?

Could somebody show me any example how execute POST or GET request using volley library to server with certificate issued by a well known CA? Do I have to change anything compare to standard http request?

我阅读了本教程- ogrelab. ikratko/using-android-volley-with-self-signed-certificate/,但这与自签名SSL证书有关.

I read this tutorial - ogrelab.ikratko/using-android-volley-with-self-signed-certificate/ but it's is about self-signed SSL certificate.

感谢您的帮助

推荐答案

我环顾四周,也找到了答案.对我来说,我发现将请求网址从以下位置更改很容易:

I looked around to find an answer for this also. For me, I found it was as easy as changing my request URL from:

www.myserver/whatever

www.myserver/whatever

这可能取决于您的服务器和DNS设置.例如,我重定向了我的根域:

This may depend on your server and DNS settings. For instance, I redirect my root domain:

myserver至www.myserver.这是Heroku的事情...

myserver to www.myserver. It's a Heroku thing...

当我尝试向根域发出请求时,服务器尝试重定向到www子域时收到了301个响应.只要记住您的DNS设置即可.希望这对某人有帮助!

When I tried to make requests to the root domain, I got 301 responses from the server as it tried to redirect to the www subdomain. Just keep in mind your DNS settings. Hope this helps someone!

更多推荐

使用截击的HTTPS请求

本文发布于:2023-11-14 11:26:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1587087.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:HTTPS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!