{"id":60391,"library":"cpprestsdk","title":"cpprestsdk","description":"C++11 JSON, REST, and OAuth library for cloud-based client-server communication","status":"active","version":"2.10.19","language":"cpp","source_language":null,"source_url":null,"tags":["rest","json","oauth","http-client","async"],"install":[{"cmd":"vcpkg install cpprestsdk","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(cpprestsdk CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE cpprestsdk::cpprest)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"cpprest/http_client.h","correct":"#include <cpprest/http_client.h>"}],"quickstart":{"code":"#include <cpprest/http_client.h>\n#include <cpprest/filestream.h>\n\nint main() {\n    web::http::client::http_client client(U(\"https://api.example.com\"));\n    client.request(web::http::methods::GET).then([](web::http::http_response response) {\n        return response.extract_string();\n    }).then([](std::string body) {\n        // process body\n    }).wait();\n    return 0;\n}","lang":"cpp","description":"Make an HTTP GET request"},"warnings":[{"fix":"Ensure vcpkg installs dependencies automatically; on Linux, install libboost-dev libssl-dev","message":"cpprestsdk requires linking against Boost and OpenSSL on some platforms","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'+11':3 'async':23 'base':12 'c':2 'client':14,22 'client-serv':13 'cloud':11 'cloud-bas':10 'communic':16 'cpprestsdk':1 'http':21 'http-client':20 'json':4,18 'librari':8 'oauth':7,19 'rest':5,17 'server':15","created_at":"2026-06-16T19:29:04.557786+00:00","updated_at":"2026-06-16T19:29:04.557786+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["http-client","networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}