A low-key HTTP micro-framework for people who hate web bloat
git clone git://soophie.de/tpee
389
char *content_length = http_header_get(&request, "Content-Length");390
if (content_length != NULL) {391
request.body_len = strtol(content_length, NULL, 10);392
request.body = malloc(sizeof(char) * (request.body_len + 1));393
http_read(conn, request.body, request.body_len);394
request.body[request.body_len] = '\0';395
}396
break;397
}