Thanks, I'll try that!
Type: Posts; User: blueviper
Thanks, I'll try that!
total = strlen(headerRequest) + size;
if(!binary) {
total += 3;
}
request = malloc(total);
if (request == NULL) {
return internalError(connfd);
}
request[0] = '\0';...
Thank you for your response.
A printf of the response looks like everything between the '----' and '---'
Response
----
HTTP/1.1 200 OK
Content-Length: 751635
Content-Type: image/gif
Hello,
I'm trying to send some binary data, such as an animated gif, via an HTTP response for a simple web server.
I am having issues having the browser close the connection after receipt of...