赞
踩
部分场景,需要从后台验证websocket服务是否能连入,判断防火墙是否开通,反向代理是否配置正确
参考
https://gist.github.com/htp/fbce19069187ec1cc486b594104f01d0
curl --include \
--no-buffer \
--header "Connection: Upgrade" \
--header "Upgrade: websocket" \
--header "Host: example.com:80" \
--header "Origin: http://example.com:80" \
--header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \
--header "Sec-WebSocket-Version: 13" \
http://example.com:80/
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。