http head request

i try to make a http HEAD request to the server, but it doesn't work , i was puzzled. If i take get in place of head. it can communicate. Why???? Can anyone help me to check it .Thank you first!

void getData()
{
  //delay(10000);
  //set the http head request
  Serial.println("HEAD /data_test/test1_717.html HTTP/1.1");
  Serial.println("HOST:192.168.1.102");
  Serial.println("Connection:close");
  Serial.println();
}

You don't print to Serial. You print to the server instance.

Use client.println like below.

  if (client.connect(serverName, 80)) {  //starts client connection, checks for connection
    Serial.println("connected");
    client.println("GET /~shb/arduino.txt HTTP/1.1"); //download text
    client.println("Host: web.comporium.net");
    client.println("Connection: close");  //close 1.1 persistent connection  
    client.println(); //end of get request
  }