Skip to content

Instantly share code, notes, and snippets.

@weshouman
Created August 28, 2016 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weshouman/81b314262263528b270fbb49b3c1f7ad to your computer and use it in GitHub Desktop.
Save weshouman/81b314262263528b270fbb49b3c1f7ad to your computer and use it in GitHub Desktop.

testing using telnet and openssl

HTTP

open the connection

telnet www.google.com 80

make the request

GET /#q=walid HTTP/1.1
Host: www.google.com

HTTPS

open the connection and request the certificate

openssl s_client -connect en.wikipedia.org:443

make the request

GET /wiki/Funimation HTTP/1.1
Host: en.wikipedia.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment