Thanks - this is the relevant part of the sketch:
time = millis();
// Test connectivity with the server
while (!serverOK) {
if (client.connect(server, 80)) {
delta = millis() - time;
Serial.print("Connected to the server in ");
Serial.print(delta);
Serial.println("ms");
time = millis();
client.print("GET /tag.php?id=01020304050607&blank=1&nasid=00-2C-DE-AD-BE-EF");
client.println(" HTTP/1.1");
client.println("Host: blah.com");
client.println("User-Agent: TestClient");
client.println("Connection: close");
client.println();
delta = millis() - time;
Serial.print("Sent push in ");
Serial.print(delta);
Serial.println("ms");
serverOK = true;
}
else {
Serial.println("Connection to server failed");
delay(100);
}
}
// Wait for response
time = millis();
while (!client.available()) {}
time2 = millis();
while (client.available()) {
inChar = client.read();
inLine += inChar;
if (inChar == '\n') {
inLine = "";
}
}
if (inLine == "OK") {
delta = millis() - time;
delta2 = millis() - time2;
Serial.print("Server response OK in ");
Serial.print(delta);
Serial.print("/");
Serial.print(delta2);
Serial.println("ms");
client.stop();
}
else {
client.stop();
Serial.print("Server response:");
Serial.println(inLine);
while (true); // Stop here
}
It's all sent in one packet, and the server replies one packet, all within the MTU.