Hot answers tagged

2

I rwote multiple test programs to see how the functions work, you can try the following to see how to use strtok to separate the different parts of request line #include <stdio.h> #include <string.h> #include <stdlib.h> void printChars(char* string, int len); int main() { char request[] = "GET /favicon.ico HTTP/1.1\r\n"; int len =...


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