curl / Mailing Lists / curl-users / Single Mail

curl-users

Connection close for HTTP upgrade requests.

From: supraja sridhar <suprajasridhar95_at_gmail.com>
Date: Fri, 16 Mar 2018 15:53:18 +0530

Hi,

Is there a way to force curl to automatically close the connection on the
client side for servers that refuse to do it? The Connection: Close header
isn't helping because I am trying to send a upgrade request for Websocket
to the server.

Command:
curl --resolve www.websocket.org:80:100.72.4.92 -vv -H "pragma:
http-akamai-debug" -H "pragma: http-akamai-optimization-debug" -S -o
/dev/null -sD /root/curl.txt http://www.websocket.org/ -H "Connection:
Upgrade" -H "Upgrade: websocket" -H "Host: echo.websocket.org" -H
"Sec-WebSocket-Version: 13" -H "Sec-WebSocket-Key: +onQ3ZxjWlkNa0na6ydhNg=="

Thanks,
Supraja

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-03-16