The tokens (delimiters) are "?& ". Those are the characters that separate your variables. strtok is not the same as strcmp. These are from a C++ example, but it is the same for C.
http://www.cplusplus.com/reference/clibrary/cstring/strtok/
http://www.cplusplus.com/reference/clibrary/cstring/strcmp/
http://www.cplusplus.com/reference/clibrary/cstring/strncmp/
My example above still works. ![]()
edit: I forgot the space as a delimiter so you can separate the HTTP/1.1 from the end of the request, so I added it.