cpr
« Back to VersTracker
Description:
C++ Requests, a spiritual port of Python Requests
Type: Formula  |  Latest Version: 1.14.1@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Networking
Tags: http-client c++ library networking api
Install: brew install cpr
About:
CPR (C++ Requests) is a modern, wrapper around libcurl designed to simplify HTTP communication in C++ applications. It provides a clean, Python Requests-inspired API for making GET, POST, and other requests, handling JSON parsing, and managing headers. The library focuses on ease of use and performance, leveraging C++11 features for a streamlined developer experience.
Key Features:
  • Python Requests-inspired API for intuitive usage
  • Built-in support for JSON handling via nlohmann/json
  • Asynchronous request support with std::future
  • Header, cookie, and authentication management
  • Automatic connection pooling and SSL/TLS support
Use Cases:
  • Integrating REST APIs into C++ applications
  • Building microservices or backend clients
  • Web scraping and data fetching in C++
Alternatives:
  • libcurl – More low-level and verbose; CPR provides a higher-level, modern C++ abstraction.
  • Boost.Beast – Part of Boost, offering WebSocket and low-level HTTP; CPR is simpler for standard HTTP client tasks.
License: MIT
Dependencies: openssl@3
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, sonoma, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 13, 2025 8:28pm 0 VERSION_BUMP e21f7b60
Nov 24, 2024 8:11am 0 VERSION_BUMP a0782cff
Nov 24, 2024 7:55am 0 VERSION_BUMP 76131be0
Oct 13, 2024 6:29am 0 VERSION_BUMP 156169ef