Don't forget to do URL decoding and www+form decoding (they are not the same thing).
Check out the strtok and strstr functions that are part of the standard libc library. These are already available to you - just #include <string.h>
. strstr() is probably the one you want.