art = &quot;GET / HTTP/1.0\r\nConnection: close\r\nHost: &quot;;
const char *request_end = &quot;\r\n\r\n&quot;;

/* Write an HTTP GET request to the peer */
if (!SSL_write_ex(ssl, request_start, strlen(request_start), &amp;written)) {
    printf(&quot;Failed to write start of HTTP request\n&quot;);
    goto end;
}
if (!SSL_write_ex(ssl, hostname, strlen(hostname), &amp;written)) {
    printf(&quot;Failed to write hostname in HTTP request\n&quot;);
    goto end;
}
if (!SSL_write_ex(ssl, request_end, strlen(