get message form tcp server

if (state == 'o'){
    digitalWrite(led, HIGH);
    Serial.println("ON");
 }

when i say q i want return "OK!";

but if i use this:

numdata=inet.httpGET("www.klondaikas.lt", 80, "/arduino/newIp.php", msg, 50);

not working this:

gsm.WhileSimpleRead("OK!");

i need use this

numdata=inet.httpGET("www.klondaikas.lt", 80, "/arduino/newIp.php", msg, 50);

because i have dynamic IP adress and i save IP adres in newIp.php but this

gsm.WhileSimpleRead("OK!");

not woking