//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
}
Life just hasn't been the same since the volcano erupted and now the air is full of tiny ads.
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
|