:::: MENU ::::

Testing website using telnet (SSL/HTTPS)

  • Jun 06 / 2014
  • 0

Testing website using telnet (SSL/HTTPS)

When developping a website, you could need to send custom requests to your server so you can analyze its behavior and its responses.

If you’re not using secured protocol, that’s easy, you just need to connect to port 80 (usually) on your server and send your request as:

You will immediately get the server response with the headers:

But now, if you want to send the same request to a server running on secured protocol (as HTTPS on port 443), you can’t use this method given that the request will be sent in plain text and the server won’t be able to understand it.

You will need to use the tool s_client provided with openssl. Once the tool is started, you wil immediately receive the certificate informations and will be able to send your request:

You will immediately get the server response with the headers as previously (in my example, a 404 error is sent back due to a non-existing page requested):

That’s all folk 😉 !

Comments are closed.

Question ? Contact