Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

cpprestsdk

> 安全
Open source

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims

8.3K stars0 likes9 views
WebsiteGitHub

About

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims

[!WARNING] ARCHIVED: [The C++ REST SDK]

This repository is no longer maintained and has been archived.

  • Support: No further issues or pull requests will be reviewed. You are free to fork this project if you wish to continue development independently.
  • Alternatives: Depending on your usage scenarios, alternatives to the C++ REST SDK include libcurl or Boost beast.

Welcome!

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.

Getting Started







With [vcpkg](https://github.com/Microsoft/vcpkg) on Windows ``` PS> vcpkg install cpprestsdk cpprestsdk:x64-windows ``` With [apt-get](https://launchpad.net/ubuntu/+source/casablanca/2.8.0-2build2) on Debian/Ubuntu ``` $ sudo apt-get install libcpprest-dev ``` With [dnf](https://apps.fedoraproject.org/packages/cpprest) on Fedora ``` $ sudo dnf install cpprest-devel ``` With [brew](https://github.com/Homebrew/homebrew-core/blob/master/Formula/cpprestsdk.rb) on OSX ``` $ brew install cpprestsdk ``` With [NuGet](https://www.nuget.org/packages/cpprestsdk.android/) on Windows for Android ``` PM> Install-Package cpprestsdk.android ``` For other platforms, install options, how to build from source, and more, take a look at our [Documentation](https://github.com/Microsoft/cpprestsdk/wiki).

Once you have the library, look at our tutorial to use the http_client. It walks through how to setup a project to use the C++ Rest SDK and make a basic Http request.

To use from CMake:

cmake
cmake_minimum_required(VERSION 3.9)
project(main)

find_package(cpprestsdk REQUIRED)

add_executable(main main.cpp)
target_link_libraries(main PRIVATE cpprestsdk::cpprest)

What's in the SDK:

  • Features - HTTP client/server, JSON, URI, asynchronous streams, WebSockets client, oAuth
  • PPL Tasks - A powerful model for composing asynchronous operations based on C++ 11 features
  • Platforms - Windows desktop, Windows Store (UWP), Linux, OS X, Unix, iOS, and Android
  • Support for Visual Studio 2015 and 2017 with debugger visualizers

Contribute Back!

Is there a feature missing that you'd like to see, or found a bug that you have a fix for? Or do you have an idea or just interest in helping out in building the library? Let us know and we'd love to work with you. For a good starting point on where we are headed and feature ideas, take a look at our requested features and bugs.

Big or small we'd like to take your contributions back to help improve the C++ Rest SDK for everyone.

Having Trouble?

We'd love to get your review score, whether good or bad, but even more than that, we want to fix your problem. If you submit your issue as a Review, we won't be able to respond to your problem and ask any follow-up questions that may be necessary. The most efficient way to do that is to open an issue in our issue tracker.

Quick Links

  • FAQ
  • Documentation
  • Issue Tracker

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Issues· 861 open

View all issuesOpen on GitHub
  • #1237

    Where are the official download point(s) for the Windows version?

    Updated Mar 12, 2026
  • #810

    Support for client certificates

    enhancementhelp wantedUpdated Mar 8, 2026
  • #1705

    HTTP lister failing with IPv6 addresses

    Updated Jul 31, 2025
  • #1768

    stdext::checked_array_iterator compilation error with VS 2022 17.8 Preview 2

    Updated Mar 28, 2025
  • #99

    Memory leaks when inlcuding the libary in MFC project

    Updated Dec 5, 2024
  • #642

    http_client always fails when server supports (but not requires) client certificates

    Updated Sep 12, 2024
  • #1740

    It doesn't build on Ubuntu 22.10

    Updated Sep 10, 2024
  • #1691

    http_request::extract_json() crashes if malformed JSON is provided.

    Updated Sep 6, 2024
  • #1685

    Memory leak with https schema while using cpprest SDK

    Updated Aug 22, 2024
  • #1789

    error: building cpprestsdk:x64-linux failed with: BUILD_FAILED

    Updated Aug 5, 2024

> Tags

C++asyncasynchronous-taskscloudcpp

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category安全
PricingOpen source

> Related tools

O
OWASP ZAP
开源 Web 应用安全扫描器
O
owasp-wstg-tracker
Simple web app to track OWASP WSTG security testing progress
H
homebridge-mi-gateway-security
XiaoMi Gateway Security plugin for HomeBridge.