Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by larrymcp (Novice)
on Jul 19, 2018 at 06:55 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 19:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found