She*_*tor 5 html redirect facebook image omniauth
我正在玩一个测试项目使用facebook api(通过omniauth)来获取用户个人资料图片,我得到一个这样的网址:http://graph.facebook.com/4/picture?width = 200 &height = 200
如果你卷曲这个网址并看到标题,它有302重定向到:(位置)https://fbcdn-profile-a.akamaihd.net/hprofile-ak-xfa1/t1.0-1/1939620_10101266232851011_437577509_n.jpg
在大多数浏览器中,他们似乎都遵循这个网址,但我的计算机上的chrome似乎已经停止了最近的重定向(我不确定最近是否有其他行为发生了变化).
浏览器的默认行为是什么?他们应该遵循重定向吗?
如果您想进行测试,请运行此测试:
#test.html
<html>
<body>
<img src="http://graph.facebook.com/4/picture?width=200&height=200">
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4542 次 |
| 最近记录: |