link sends user to code page?

You could simplify your parsing quite a bit. Make the name a number, like "2", not a value like "PIN2"
Make the value a string like "T;" or "F;", instead of "T" or "F".

Then, the URL will contain something like "?2=T;". You can store the whole server response in the char array.

Then, use strtok(), with ? as the delimiter. Throw that value away. Call strtok() again with NULL as the string to parse and "=" as the delimiter. The token will be "2". That's easy to turn into a number. Do so. Use that number as the array index

Then, call strtok() again with NULL and ";". The token will be "T" or "F". Use that to decide what to do with the known pin number.