Skip to content


‘Telnet’ to an HTTPS Server

HTTP 1.0:

openssl s_client -connect host:443 -state -debug
GET / HTTP/1.0

HTTP 1.1:

openssl s_client -connect host:443 -state -debug
GET / HTTP/1.1
Host: <Enter host name here>

POSTing:

openssl s_client -connect host:443 -state -debug
POST / HTTP/1.1
Host: <Enter host name here>
Content-Length: 6

foobar

Posted in Tips and Tricks.


5 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Daniel Hoffman says

    Awesome! Thanks!

  2. Dan says

    That’s a very handy little trick for debugging. Thanks!

  3. Vector says

    Ha, now i finally see why my paypal api wasn’t hitting: 302 response (login redirect). Thanks for the tip!

  4. Rob says

    Very very useful, thanks!

  5. flyfish says

    Good Job



Some HTML is OK

or, reply to this post via trackback.