0

I try to make simple http and https request in c, for that I follow this: here, but it works with the example, but it doesn't work with https rest api, for example: here

I would like to have an example of how I can make an https and http request from scratch, without using external libraries like libcurl.

  • 1
    HTTPS is just HTTP over TLS/SSL. You almost **have to use external libraries for the SSL part**, it would take you forever to write a TLS client from scratch. You can use, for example, the openssl library to create the TLS socket. After that, just follow the http example but using the TLS socket instead of the plain socket. – President James K. Polk Apr 09 '23 at 17:50
  • How I can make a HTTP over TLS/SSL, please give me a code example. @PresidentJamesK.Polk – Rodrigo Apr 10 '23 at 01:37

0 Answers0