百度的 https 正常吗?

2017-10-09 16:51:55 +08:00
 wwjvtwoex

使用 Python 的 urllib2.urlopen('https://www.baidu.com').read()

取到的 html 字符串


<html><head><script>

location.replace(location.href.replace("https://","http://"));

</script></head><body><noscript>

<meta http-equiv="refresh" content="0;url=http://www.baidu.com/">

</noscript></body></html>


这是正常的 https 站点吗?

3402 次点击
所在节点    HTTP
3 条回复
nazor
2017-10-09 16:54:31 +08:00
...你 user-agent 的问题
wwjvtwoex
2017-10-09 16:57:43 +08:00
谢谢,回头学习一下
dooonabe
2019-01-26 21:10:41 +08:00
微信小程序访问 baidu 的接口时,android 端没有问题,ios 端也是会有上述这个问题,不太像 user-agent 的问题

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/396212

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX