Skip to content

Installation

Requirements

Before installing, make sure your environment meets the following requirements:

Requirement Details
Board ESP32 (any variant: ESP32-S2, S3, C3, etc.)
IDE / Core Arduino IDE 1.8.x/2.x or PlatformIO
ESP32 Arduino Core v2.x or later
Dependencies None β€” no external libraries required

  1. Open the Arduino IDE.
  2. Go to Sketch β†’ Include Library β†’ Manage Libraries....
  3. Search for ESP32-HTTP-Client.
  4. Click Install on the result by Pedro Fonseca.

Method 2: PlatformIO

Add ESP32-HTTP-Client to the lib_deps section of your platformio.ini project configuration file:

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps =
    PedroFnseca/ESP32-HTTP-Client@^1.4.0

Alternatively, install it via PlatformIO CLI:

pio pkg install --library "PedroFnseca/ESP32-HTTP-Client"

Method 3: Manual Installation

  1. Download the latest release ZIP from GitHub.
  2. In the Arduino IDE, go to Sketch β†’ Include Library β†’ Add .ZIP Library....
  3. Select the downloaded ZIP file.

Alternatively, extract it directly into your Arduino/libraries/ folder:

Arduino/
└── libraries/
    └── ESP32-HTTP-Client/
        β”œβ”€β”€ src/
        β”‚   β”œβ”€β”€ ESP32HTTPClient.h
        β”‚   β”œβ”€β”€ ESP32HTTPClient.cpp
        β”‚   β”œβ”€β”€ RestRequest.h
        β”‚   β”œβ”€β”€ RestRequest.cpp
        β”‚   β”œβ”€β”€ RestTypes.h
        β”‚   └── BufferedStreamReader.h
        β”œβ”€β”€ examples/
        β”œβ”€β”€ library.properties
        └── ...

Verify Installation

After installing, verify by loading one of the built-in examples:

File β†’ Examples β†’ ESP32-HTTP-Client β†’ RestCrud

Upload it to your ESP32 (with your WiFi credentials filled in) and open the Serial Monitor at 115200 baud.


Next Step

β†’ Quick Start guide