We will be closed on November 25, 2021 and November 26, 2021 in observance of the Thanksgiving holiday. We will resume normal operations on November 29, 2021. Wishing you a safe and happy holiday from all your friends at SparkFun!


Receive a free SparkFun USB Thumb Drive with every order this weekend. Details.

Member #422954

Member Since: March 26, 2013

Country: United States

  • Thanks for your help. I didn't understand the code, but I found another way around in my case. Since I write the PHP-code I made it simple and started the output with a "[" and ended it with a "]". Then I made the Arduino code to check for these two characters. Like this:

    while ( client.available() ) {
     c = client.read();
     if (sd_file) {
       if (c == '[' ) { //'[' is my begining character
         startRead = true; //Ready to start reading the part 
       } else if (startRead) {
         if(c != ']'){ //'>' is my ending character
         } else {
           startRead = false;
  • I'm a noob at the client-part of this libary and I would appreciate if someone could help me or give me a hint in which direction I should go to find answers to my questions.

    In the example for WebClientSD it gets a file / HTML (or what ever) and save it as a file on the SD-card. In my case I would like to save the output from a PHP-file. But I also gets the complete header. Example like thiis:

    HTTP/1.1 200 OK
    Server: Apache
    X-Powered-By: PHP/5.6.16
    Vary: Accept-Encoding
    Content-Type: text/html; charset=UTF-8
    Content-Length: 32
    Accept-Ranges: bytes
    Date: Sun, 17 Jan 2016 17:05:17 GMT
    X-Varnish: 1741726857
    Age: 0
    Via: 1.1 varnish
    Connection: keep-alive
    Hello World!

    I only need "Hello World!" and not the complete header. Does anyone know how I can accomplish this?

No public wish lists :(