# HttpClientTest **Repository Path**: milesip/http-client-test ## Basic Information - **Project Name**: HttpClientTest - **Description**: 简单的cmake 示例工程用于学习cmake+ vcpkg ,其中有一些三方库的使用例如 日志 格式化 json httpClient - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-05-15 - **Last Updated**: 2026-05-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # HTTP Client Test A C++-based HTTP client testing project that uses nlohmann/json for JSON processing and log4cplus for logging. ## Project Overview This is a C++ sample project designed to test HTTP client functionality, demonstrating how to: - Initiate HTTP requests - Process JSON responses - Use log4cplus for logging ## Technology Stack - **C++** - Programming language - **nlohmann/json** - JSON parsing library - **log4cplus** - Logging library - **CMake** - Build system - **vcpkg** - Dependency management ## Build and Run ### Prerequisites - CMake 3.15+ - C++ compiler (GCC/Clang/MSVC) - vcpkg ### Build Steps ```bash # Initialize and install dependencies vcpkg install # Create build directory mkdir build && cd build # Configure and build cmake .. -DCMAKE_TOOLCHAIN_FILE=[vcpkg root]/scripts/buildsystems/vcpkg.cmake cmake --build . ``` ## Project Structure ``` ├── CMakeLists.txt # CMake build configuration ├── main.cpp # Main program entry point ├── log4cplus.properties # Logging configuration ├── vcpkg.json # Dependency configuration └── vcpkg-configuration.json ``` ## Usage Instructions Run the compiled executable to perform the HTTP client test. ## License Please refer to the LICENSE file in the project for specific licensing information.