如何检测服务器是否正在使用SPDY [英] How to detect if a server is using SPDY

查看:96
本文介绍了如何检测服务器是否正在使用SPDY的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以检测远程网站是否支持SPDY及其支持的版本?

Any way to detect if a remote website supports SPDY and what version it is?

我可以在命令行中使用bash脚本之类的东西.

Something I can use from the command line like a bash script.

尝试发送带有curl的自定义User-Agent标头,但无法获得任何对我有帮助的响应标头.

Tried sending custom User-Agent headers with curl but can't get any kind of response headers that would help me.

该想法是能够为任何域获取SPDY:true/false版本:3.1/3.0 ...

The idea is to be able to get SPDY:true/false Version:3.1/3.0... for any domain.

推荐答案

openssl s_client -connect google.com:443 -nextprotoneg ''
CONNECTED(00000003)
Protocols advertised by server: spdy/3.1, spdy/3, http/1.1

这篇关于如何检测服务器是否正在使用SPDY的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆