send url using a switch.?

thanx for your answers,still stragling to make it work ,this is the scetch i am trying

#include <SPI.h>
#include <Ethernet.h>  
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };   //physical mac address
byte ip[] = { 192, 168, 1, 120 };                      // ip in lan (that's what you need to use in your browser. ("192.168.1.178")
byte gateway[] = { 192, 168, 1, 1 };                   // internet access via router
byte subnet[] = { 255, 255, 255, 0 };                  //subnet mask
EthernetServer server(4040);                             //server port
EthernetClient client;

String readString;


void setup() {
{
Serial.begin(9600);

delay(1000);
Serial.println("connecting...");
}
  // LEDs
    pinMode(6, OUTPUT);
    pinMode(7, OUTPUT);
    pinMode(8, OUTPUT);
    pinMode(9, OUTPUT);
  // start the Ethernet connection and the server:
  Ethernet.begin(mac, ip, gateway, subnet);
  server.begin();
  Serial.print("server is at ");
  Serial.println(Ethernet.localIP());
}


void loop() {
  // Create a client connection
  EthernetClient client = server.available();
  if (client) {
    while (client.connected()) {   
      if (client.available()) {
        char c = client.read();
     
        //read char by char HTTP request
        if (readString.length() < 100) {
          //store characters to string
          readString += c;
          //Serial.print(c);
         }

         //if HTTP request has ended
         if (c == '\n') {          
           Serial.println(readString); //print to serial monitor for debuging
     
           client.println("HTTP/1.1 200 OK"); //send new page
           client.println("Content-Type: text/html");
           client.println();     
           client.println("<HTML>");
           client.println("<HEAD>");
           client.println("<meta name='apple-mobile-web-app-capable' content='yes' />");
           client.println("<meta name='apple-mobile-web-app-status-bar-style' content='black-translucent' />");
           client.println("<link rel='stylesheet' type='text/css' href='http://randomnerdtutorials.com/ethernetcss.css' />");
           client.println("<TITLE>HOME AUTO SERVER</TITLE>");
           client.println("</HEAD>");
           client.println("<BODY>");
           client.println("<H1>HOME AUTOMATION PANEL</H1>");
           client.println("<hr />");
           client.println("
");  
           client.println("<H2>PRESS TO OPEN AND CLOSE</H2>");
           client.println("
");
           client.println("
");
           client.println("<a href=\"/?button4on\"\"> INDOOR </a>");
           client.println("
");
           client.println("
");
           client.println("
");  
           client.println("<a href=\"/?button1on\"\"> OUTDOOR </a>");
           client.println("
");
           client.println("
");
           client.println("
"); 
           client.println("<a href=\"/?button2on\"\"> LIGHTS  ON </a>");
           client.println("<a href=\"/?button2off\"\"> LIGHTS  OFF </a>
");
           client.println("
");     
           client.println("
");
           client.println("
"); 
           client.println("<a href=\"/?button3on\"\"> MAIN SWITCH ON </a>");
           client.println("<a href=\"/?button3off\"\"> MAIN SWITCH OFF </a>
");
           client.println("
");     
           client.println("
");
           client.println("
"); 
           client.println("
");   
           client.println("
"); 
           client.println("</BODY>");
           client.println("</HTML>");
     
           delay(1);
           //stopping client
           client.stop();
         
           if (readString.indexOf("?button1on") >0){
               digitalWrite(6, HIGH);
               delay(3000);
               digitalWrite(6, LOW);
           }
          
           if (readString.indexOf("?button2on") >0){
               sendGET();
           }
           if (readString.indexOf("?button2off") >0){
               digitalWrite(7, LOW);
           }
           if (readString.indexOf("?button3on") >0){
               digitalWrite(8, HIGH);
           }
           if (readString.indexOf("?button3off") >0){
               digitalWrite(8, LOW);
           }
           if (readString.indexOf("?button4on") >0){
               digitalWrite(9, HIGH);
               delay(3000);
               digitalWrite(9, LOW);
           }
            //clearing string for next read
            readString="";  
           
         }
       }
    }
}
}
void sendGET(){


    if (client.connect("myoffice-ip",80)) {
    Serial.println("connected");
    client.println("GET /?lightsoff HTTP/1.1"); //download text
    client.println("Host: myoffice-ip");
    client.println("Connection: close");  //close 1.1 persistent connection  
    client.println(); //end of get request
  } 
  else {
    Serial.println("connection failed"); //error message if no client connect
    Serial.println();
  }


  Serial.println();
  Serial.println("disconnecting.");
  Serial.println("==================");
  Serial.println();
  client.stop(); //stop client

}

the void sendGET is called allright when i press the "button2on" ,i see at serial monitor that gets connected with server,waits and then disconnect,but nothing happens,no data gets posted.Where am i wrong?