Nginx – how to extract response status code from curl websocket interface in shell script
curl --insecure --no-buffer --header "Connection: Upgrade" --header "Upgrade: websocket" --header "Sec-WebSocket-Version: 13" --header "Sec-WebSocket-Key: websocket" -v https://127.0.0.1:443/blackhole i use this to check websocket interface success or fail when i execute this, the result is below: * About to connect() to…