I have a program that has a buffer containing http data captured from the wire. The buffer would contain both http header and html. Using C program is there a way to parse the http header? Iam not really interested in html. I have seen other examples as shown in Regex HTTP header parsing, however, Iam looking at using some existing library (to be used in C) that can simply parse the header and give me each field.
My requirements are: - To just peep into the buffer and check if its http payload - If its http payload then run a regex parser to get all fields of http header.
Is there code out there which I can check? Does anyone know of any library?
Regards, bgun