開発者ツール

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