//sending first message to server
out.println("GET " + "/" + pot + " HTCPCP /0.1 \r\n");
//sending first message to server
out.println("GET " + "/" + pot + " HTCPCP /0.1 \r\n\r\n");
while ((inputLine = in.readLine()) != null)
{
input += inputLine;
}
while ((inputLine = in.readLine()) != null) {
if (inputLine.equals("")) {
//call a subroutine to process input passing "input" as parameter
input = "";
} else {
input += inputLine;
}
}
if (!input.equals("")) {
// call a subroutine to process input passing "input" as parameter again
// inorder to catch any last statement that may not have included an exra
// blank line after it and before the close() statement in the client
}
Don't get me started about those stupid light bulbs. |