개발자 도구

WebSocket을 cURL로 변환

WebSocket 연결을 cURL 핸드셰이크, wscat, websocat, JavaScript 또는 Python 코드로 변환

WebSocket connection
.sh
curl -i -N 'https://echo.websocket.org' \
  -H 'Connection: Upgrade' \
  -H 'Upgrade: websocket' \
  -H 'Origin: https://echo.websocket.org' \
  -H 'Sec-WebSocket-Version: 13' \
  -H 'Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==' \
  -H 'Authorization: Bearer YOUR_TOKEN'

The cURL output is the raw HTTP Upgrade handshake (RFC 6455). Use it to verify the server returns 101 Switching Protocols. cURL itself doesn't speak the WebSocket frame protocol after the handshake — for that, switch to wscat or websocat.

필요한 게 없나요?

커뮤니티 피드백으로 무료 도구를 만듭니다. 워크플로에 필요한 도구를 제안해 주세요!

WebSocket을 cURL로 변환 — 무료 도구 온라인 | FreeTool24 | FreeTool24