httpRequest parseHttpRqt(char *msg) {
httpRequest rtrn;
return rtrn;
}
I was just wondering if anybody could help with parsing a Http Request? I understand that the request is as illustrated below, but how would i turn that into an object containing the code (200/400/404) and the filename? Bearing in mind that I am only concerned with GET requests.
GET /index.html HTTP/1.1\r\n
host: somewebsite.com\r\n
\r\n