DNS Server linuxLinux serverNETWORK ADMINISTRATIONS

Making Minimalist HTTPS Client in C on Linux

I this video I will demonstrate how to create a simple HTTPS client in C using the Socket API and OpenSSL library.

You can install the OpenSSL dependencies (libraries and man pages) using the following command on Ubuntu/Debian:
apt install libssl-dev libssl-doc

For other distros, check out the corresponding OpenSSL library packages names

You can view the code I wrote in the video over here: https://gist.github.com/nir9/838254f305696b13e271337a7b65b919

source

by Nir Lichtman

linux dns server

29 thoughts on “Making Minimalist HTTPS Client in C on Linux

  • Please make video about pointers and why they are used. You have such a great way to explain concepts!

  • hey , what man pages are you using ? , i am on arch , so it doesn't have installed by default

  • Great video! It would also be nice if you made a video about DNS; so we can have a full fledged https client with domain name resolution

  • Is there a reason as to why you're sending two CRLFs in your http request? Particularly because you're on linux

  • You're the type of programmer I want to be when I grow up (I'm 37… 😂).

  • Very, very insightful content !
    I also have a question, more a curiosity. I got caught at 4:59 by the long list of autocompletion. Is it the LSP, or something else? Because, it look like the Vim built-in autocompletion functionality, just extended to search into included files. If so, I'd love to know how made it to work like that.

  • I love how your video doesn't jump everywhere all the times

  • Man linux seems to much better than windows. I am really new to programming and stuff, will install linux this weekend or sometime.

  • This is incredible good stuff for developing small IOT devices that should listen to or read settings or logs from other devices
    Thanks!

  • Great video man!!!! if possible can you discuss the step by step procedure to do the task instead to writing functions on the go ?

  • when you call man on a command, ….where is the documentation comming from, is "C" inbuilt in linux? noob question

  • broo, I have barely started on your first video, take it easy yoh…also any tips on how you manage your time or how to move fast like you would be highly appreciated, just like the videos…great work…truly god sent….(algorithim sent)

  • Great video as always!
    One tip is that, if you don’t want to manually create the sockaddr_in struct and mess with the host to network byte order and so on, you can use getaddrinfo() instead, which you pass it the hostname and port number as strings and hints about the domain and socket types then it will output a ready to use sockaddr_in struct 🙂

Comments are closed.