Download and Store Web Data © GPL3+

How to use the Arduino HTTP Client library to download a raw text page and store its content on an SD card.

Components and Supplies

Apps and Online Services

About This Project

Format Your SD Card the Right Way

The Arduino SD library is able to read and write only FAT16 or FAT32 cards, so first you need to format your SD card in one of these formats.

Put Things Together

This project is very easy to assemble. You simply have to put your SD card in the Arduino MKR SD Proto Shield and place the shield on top of your MKR1000 board.

HTTP Client Library

The Arduino HTTP client library allows you to easily parse a HTTP GET request separating the header and the body for you. This means that your code is very light and understandable. You can even change your sketch behavior depending on the status code response.

Code

Run the Code

To run the code, upload it onto your board and then open your Serial monitor. The board will print out the various steps in the code, and if the ASCII logo is correctly downloaded, it will be printed on the Serial monitor reading it from the SD card.

Contribute to Arduino

Join the community and suggest improvements to this article via GitHub. Make sure to read out contribution policy before making your pull request.

Missing something?

Check out our store and get what you need to follow this tutorial.