larrymcp has asked for the wisdom of the Perl Monks concerning the following question:

I need to communicate with a Websockets server that expects HTTPS. I'm doing some initial tests using the wsconsole example script that comes with Protocol::WebSocket::Client.

When the script connects to the server on port 443, the server responds:

    400 Bad Request
    The plain HTTP request was sent to HTTPS port

It appears that for some reason the wsconsole script is not using HTTPS, even though I did preface the URL with "wss://" and I did specify port 443. Is there something I need to do, some parameter I need to specify, to tell it to use HTTPS when communicating with the server?

Thanks very much!

  • Comment on Use Protocol::WebSocket::Client in HTTPS mode?

Replies are listed 'Best First'.
Re: Use Protocol::WebSocket::Client in HTTPS mode?
by Corion (Patriarch) on Jul 19, 2018 at 07:08 UTC