I am trying to implement a simple HTTP server with C that
1. reads a request
2. checks if it is a GET request
3. reads the URL from the request
4. Checks if file is on server and tries to open it
I am using strtok for String tokenizing and I think it messes up the filepath. open and fopen always return error codes and are not able to open any files.