How do I make an http request using sockets on linux? currently, I\'m getting
HTTP/1.1 301 Moved Permanently
//etc
Location: https://server.com
HTTPS is just like HTTP, but its encapsulated in a cryptographic SSL layer. You will need to use a lib like OpenSSL to make those HTTPS connections.
OpenSSL will provide functions that replace the socket.h ones, to connect, read and write regular HTTP (or whatever other protocol you want to use) through a SSL channel, making the handling of the SSL part transparent to you.