{"id":20347991,"url":"https://github.com/shlomnissan/https-request","last_synced_at":"2026-06-07T17:31:29.436Z","repository":{"id":188249391,"uuid":"628424406","full_name":"shlomnissan/https-request","owner":"shlomnissan","description":"🌍 A command-line tool that makes HTTPS requests written in C++17","archived":false,"fork":false,"pushed_at":"2023-09-04T21:39:51.000Z","size":196,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-14T23:05:36.207Z","etag":null,"topics":["cmake","cpp","http-client","https","openssl","sockets"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shlomnissan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-15T22:44:03.000Z","updated_at":"2023-04-22T04:05:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"ea37a4af-0e01-4a66-855d-d34cdf01434a","html_url":"https://github.com/shlomnissan/https-request","commit_stats":null,"previous_names":["shlomnissan/https-request"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shlomnissan%2Fhttps-request","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shlomnissan%2Fhttps-request/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shlomnissan%2Fhttps-request/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shlomnissan%2Fhttps-request/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shlomnissan","download_url":"https://codeload.github.com/shlomnissan/https-request/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241877504,"owners_count":20035417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmake","cpp","http-client","https","openssl","sockets"],"created_at":"2024-11-14T22:18:49.335Z","updated_at":"2026-06-07T17:31:27.338Z","avatar_url":"https://github.com/shlomnissan.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌍 https-request\nThis is a simple tool written in modern C++. It makes HTTP/S requests to a given host and prints the output.\n\n[![Ubuntu](https://github.com/shlomnissan/https-request/workflows/Ubuntu/badge.svg)](https://github.com/shlomnissan/https-request/actions/workflows/ubuntu.yml)\n[![MacOS](https://github.com/shlomnissan/https-request/workflows/MacOS/badge.svg)](https://github.com/shlomnissan/https-request/actions/workflows/macos.yml)\n[![Windows](https://github.com/shlomnissan/https-request/workflows/Windows/badge.svg)](https://github.com/shlomnissan/https-request/actions/workflows/windows.yml)\n\n- The goal of this project is to experiment with HTTP clients and OpenSSL. It is not a full-featured HTTP client. For a complete production-grade HTTP client library in C++, check out [express-client](https://github.com/shlomnissan/express-client).\n- If you find this project informative or useful, please ⭐️ this repository to show your support.\n\n## Features\n- A command-line application\n- Supports both HTTP and HTTPS protocols\n- Written in modern C++\n- Cross-platform\n\n## HTTPS and certificate verification\nEvery operating system provides a list of trusted Certificate Authorities (CAs) that can be used to verify server certificates. However, there is no general way to import these lists.\n\nMozilla maintains its own trusted certificate authority (CA) store, which is frequently used by HTTP clients. [curl](https://curl.se/) has developed tools to extract these certificates from Firefox and convert them to a file containing the CAs' digital signatures suitable for server certificate verification. This file can be downloaded directly from their servers at https://curl.se/docs/caextract.html.\n\nThe **https-request** executable requires a trusted CAs PEM file named `ca-bundle.crt` to be placed in the same directory. This project includes a CMake option called `FETCH_TRUSTED_CA` (enabled by default) that downloads the Mozilla CA store into the build's binary directory. If you prefer to use a different store, turn off this option and place your own `ca-bundle.crt` file along with the **https-request** executable.\n\n## Build\nThe steps below have been tested on Linux, MacOS, and Windows:\n\n**1. Install dependencies**\n\nPlease make sure that the following dependencies are installed on your system:\n- CMake (minimum version 3.22)\n- OpenSSL\n\n**2. Clone the repository**\n```\n$ git clone https://github.com/shlomnissan/https-request.git\n```\n**3. Generate build files for your environment**\n```\n$ cd https-request\n$ mkdir build\n$ cd build\n$ cmake .. -DCMAKE_BUILD_TYPE=Debug\n```\nTo generate a build for the Release version, specify `-DCMAKE_BUILD_TYPE=Release` instead.\n\n**4. Build the tool**\n```\ncmake --build .\n```\nAlternatively, you can build the project using your default build system directly.\n\n## Usage\n\nThis command-line application accepts a single argument: the hostname of the website to which you want to connect.\nOnly the HTTP and HTTPS URL schemes are supported.\n```\n$ https-request https://www.betamark.com \n```\n\n## Licence\n\n```\n    ____       __                             __  \n   / __ )___  / /_____ _____ ___  ____ ______/ /__\n  / __  / _ \\/ __/ __ `/ __ `__ \\/ __ `/ ___/ //_/\n / /_/ /  __/ /_/ /_/ / / / / / / /_/ / /  / ,\u003c   \n/_____/\\___/\\__/\\__,_/_/ /_/ /_/\\__,_/_/  /_/|_|  \n                                                  \nCopyright (c) 2023-present Shlomi Nissan\nhttps://betamark.com\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshlomnissan%2Fhttps-request","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshlomnissan%2Fhttps-request","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshlomnissan%2Fhttps-request/lists"}