Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Use Protocol::WebSocket::Client in HTTPS mode?

by larrymcp (Novice)
on Jul 19, 2018 at 06:55 UTC ( #1218808=perlquestion: print w/replies, xml ) Need Help??

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

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1218808]
Approved by kcott
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2023-09-29 19:37 GMT
Find Nodes?
    Voting Booth?

    No recent polls found