Parse HTTP Get Request

Your code won't work as you don't progress the parsing when you find STA

Your while loop will find STA and then if (!strncmp(part, "ID=", 3)) fails because you still point at STA, and if (!strncmp(part, "Pass=", 5)) fails because you still point at STA. you arrive at the end of the loop, you get to the next token with part = strtok(NULL, "/"); and go back up to check again agains STA... but this time it' no longer STA, it's ID=... but you don't enter the if clause because it's not STA...

long story short, you don't parse the string in the right way...