1

From the instructions: absolute-path [ "?" query ] whereby absolute-path (which will not contain ?) must start with / and might optionally be followed by a ? followed by a query, which may not contain ". Notice, the "?" is inside the [ optional clause ], so you may assume that it is not part of absolute-path. Further: Store at the address in ...


1

So it looks like abs_path and query weren't properly being updated inside of my parse function, despite the printf results looking good. In main(), abs_path and query were empty. Broken code: // if request target has a ? else { abs_path = strtok(request_target_copy, "?"); query = strtok(NULL, "?"); if (query == NULL) { query = ""; ...


Only top voted, non community-wiki answers of a minimum length are eligible