Read more

How to make http/https requests yourself with nc/telnet/openssl

Kim Klotz
April 24, 2017Software engineer at makandra GmbH

Sometimes you want/have to send specific http(s) requests. You can do that easy with curl or just write the request yourself.

make a http request with nc

nc example.com 80
GET / HTTP/1.1
Host: example.com
# press enter

make a http request with telnet

telnet example.com 80
GET / HTTP/1.1
Host: example.com
# press enter

make https request with openssl

openssl s_client -connect example.com:443
GET / HTTP/1.1
Host: example.com
# press enter
Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

You can specify more headers if you want:

nc example.com 80
GET /foo.html HTTP/1.1
Host: example.com
Accept-Encoding: gzip
Accept: text/html
# press enter
Posted by Kim Klotz to makandra dev (2017-04-24 17:25)