$headers = @{
"X-Large-Header" = "A" * 1
"User-Agent" = "WebSocket++/0.8.2"
"Upgrade" = "websocket"
"Connection" = "Upgrade"
"Sec-WebSocket-Key" = "dGhlIHNhbXBsZSBub25jZQ=="
"Content-Type" = "application/octet-stream"
}
Invoke-WebRequest -Uri "http://tunnel.xxx.com" -Method Get -Headers $headers -Verbose
$headers = @{
"X-Large-Header" = "A" * 1
"User-Agent" = "WebSocket++/0.8.2"
"Upgrade" = "websocket"
"Connection" = "Upgrade"
"Sec-WebSocket-Key" = "dGhlIHNhbXBsZSBub25jZQ=="
"Content-Type" = "application/octet-stream"
}
Invoke-WebRequest -Uri "http://tunnel.xxx.com" -Method Get -Headers $headers -Verbose