in reply to IO::Socket::SSL -> unexpected message !

Hello. Thank you for the replies. This is the output of curl:
curl https://127.0.0.1:2222 curl: (56) OpenSSL SSL_read: error:1408F1BB:SSL routines:ssl3_get_reco +rd:bad record type, errno 0
In the browser i get this message:
Secure Connection Failed An error occurred during a connection to 127.0.0.1:2222. SSL_ERROR_RX_ +UNEXPECTED_RECORD_TYPE The page you are trying to view cannot be shown because the authen +ticity of the received data could not be verified. Please contact the website owners to inform them of this problem.
The code of my program is very long. I can not post it here... Can you help me please? Thanks

Replies are listed 'Best First'.
Re^2: IO::Socket::SSL -> unexpected message !
by Corion (Pope) on Apr 18, 2020 at 05:48 UTC

    This random StackOverflow comment still suggests that your webserver is mixing up plaintext connections and SSL connections.

    Maybe the following "works" and returns a webpage?

    curl http://127.0.0.1:2222

    Alternatively, maybe you're trying to start an SSLv3 connection, but your web server does not speak SSLv3 ?

    Without anything to replicate this situation, all I can do is Google your error message and guess. I think this is something you can do as well...

      Thank you very much... i solved the problem. Now i use another file ( i have programmed earlier ) and it works ;)