How can I send more than one message in client Ethernet Shield

Hi,

I'm trying to use my arduino ethernet like a client and a Java program like my server, I use the example committed by arduino and it function, The problem is that I need send more than 1 message and when I try to send a mensagge in the loop block It doesn't function, What should I do ??

There is my code

#include <Ethernet.h>
#include <SPI.h>


byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { 10, 0, 0, 177 };
byte server[] = { 10, 10, 10, 10 };

EthernetClient client;

void setup()
{
  Ethernet.begin(mac, ip);
  Serial.begin(9600);

  delay(1000);

  Serial.println("connecting...");

  if (client.connect(server, 80)) {
    Serial.println("connected");
    client.println("H");
  } else {
    Serial.println("connection failed");
  }
}

void loop()
{
  if (client.available()) {
    char c = client.read();
    Serial.print(c);
      if(c=='H'){
      delay(1000);
      client.write("H");
  }

  if (!client.connected()) {
    Serial.println();
    Serial.println("disconnecting.");
    client.stop();
    for(;;)
      ;
  }
}

What does your serial output look like? What are you seeing on the server end?

Why are you sending "H" followed by carriage return and line feed in one case (in setup()), and "H" by itself in the other case (in loop())?

Why are you using print() in one case and write in the other?