             if (strcmp(toks, "switch") == 0) {
               toks = strtok (NULL, "/");
               if (atoi(toks) > 0) {
-                DBG Serial.println("Setting switch status to HIGH");
+                DBG Serial.println("switch up");
                 digitalWrite(RELAY_PIN, HIGH);
               } 
               else { 
-                DBG Serial.println("Setting switch status to LOW");
+                DBG Serial.println("switch down");
                 digitalWrite(RELAY_PIN, LOW);
               }
               sendContent(request, digitalRead(RELAY_PIN));
               break;
             } 
-          } 
+          }
+          else {
+            File dataFile = SD.open("a.htm");
+            if (dataFile) {
+              while (dataFile.available()) {
+                  request.write(dataFile.read());
+              }
+              dataFile.close();
+            } else {
+              Serial.println(dataFile);
+            }
+          }
           // send a not found response header
-          request.println(CONTENT_404);
+          request.println("HTTP/1.1 404 Not Found\n\n");
           request.println();
           break;
         }
-        request.println(CONTENT_501);
+        request.println("HTTP/1.1 501 Not Implemented\n\n");
         request.println();
         break;
       }

  }
  else {
    // if you couldn't make a connection:
    DBG Serial.println("Unable to connect.");
  }
}


    return;
  }
  // try to connect
  EthernetClient client;    
  int ret = client.connect(settings.host, settings.port);
  if (ret == 1) {
    // build json document
    DBG Serial.print("PUT /v2/feeds/");
    DBG Serial.println(settings.feed);
    // send the HTTP PUT request. 
