How to parse http body in C