{"id":22760474,"url":"https://github.com/funatsufumiya/ofxhttplib","last_synced_at":"2025-06-25T07:34:06.179Z","repository":{"id":261535147,"uuid":"884595957","full_name":"funatsufumiya/ofxHttpLib","owner":"funatsufumiya","description":"cpp-httplib for openFrameworks","archived":false,"fork":false,"pushed_at":"2024-11-07T05:14:29.000Z","size":75,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T03:52:24.604Z","etag":null,"topics":["openframeworks-addon"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/funatsufumiya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-11-07T03:19:31.000Z","updated_at":"2024-11-07T07:45:32.000Z","dependencies_parsed_at":"2024-11-07T04:25:18.584Z","dependency_job_id":"85a6adb0-6516-4ca7-82bf-d39cc559a7d0","html_url":"https://github.com/funatsufumiya/ofxHttpLib","commit_stats":null,"previous_names":["funatsufumiya/ofxhttplib"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/funatsufumiya/ofxHttpLib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funatsufumiya%2FofxHttpLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funatsufumiya%2FofxHttpLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funatsufumiya%2FofxHttpLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funatsufumiya%2FofxHttpLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/funatsufumiya","download_url":"https://codeload.github.com/funatsufumiya/ofxHttpLib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funatsufumiya%2FofxHttpLib/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261827389,"owners_count":23215739,"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":["openframeworks-addon"],"created_at":"2024-12-11T09:07:13.714Z","updated_at":"2025-06-25T07:34:06.161Z","avatar_url":"https://github.com/funatsufumiya.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ofxHttpLib\n\n[cpp-httplib](https://github.com/yhirose/cpp-httplib) for openFrameworks (tested on v0.12.0, cpp-httplib version: [v0.18.1](https://github.com/yhirose/cpp-httplib/commit/5c1a34e766817cf0865ca8bc5af5edeb0f9b2df4))\n\n## Notes\n\n- openssl is not included in this lib\n  - you can use [ofxOpenSSL3](https://github.com/funatsufumiya/ofxOpenSSL3) if you need, and SSL http example is also in it.\n  - ofxPoco has openssl lib in it, but openssl version is lower than 3.0.0, so it won't work with this lib\n\n## Usage\n\nSee [example_http_client](example_http_client). (NOTE: Please use `projectGenerator` before run it)\n\n```cpp\n#include \"ofApp.h\"\n\n// need this to SSL support, however, openssl is not included in this lib\n// if you really need, you have to config openssl (\u003e= 3.0.0) lib by yourself\n//#define CPPHTTPLIB_OPENSSL_SUPPORT\n\n// also need this for windows ofxOpenSSL3\n//#define USE_OPENSSL3_INSTEAD_OF_OPENSSL_WIN 1\n\n#include \"httplib.h\"\n\n//--------------------------------------------------------------\nvoid ofApp::setup(){\n\tofLogToConsole();\n\n\t//httplib::Client cli(\"https://httpbin.org\");\n\thttplib::Client cli(\"http://httpbin.org\");\n\n\tauto res = cli.Get(\"/ip\");\n\n\tif (res) {\n\t\tofLogNotice(\"ofApp\") \u003c\u003c \"res-\u003estatus = \" \u003c\u003c res-\u003estatus;\n\t\tofLogNotice(\"ofApp\") \u003c\u003c \"res-\u003ebody = \" \u003c\u003c res-\u003ebody;\n\t} else {\n\t\tofLogError(\"ofApp\") \u003c\u003c \"error: \" \u003c\u003c res.error();\n\t}\n}\n\n// Result:\n// [notice ] ofApp: res-\u003estatus = 200\n// [notice ] ofApp: res-\u003ebody = {\n//   \"origin\": \"xxx.xxx.xxx.xxx\"\n// }\n```\n\n## LICENSE\n\n- cpp-httplib: [MIT License](https://github.com/yhirose/cpp-httplib/blob/5c1a34e766817cf0865ca8bc5af5edeb0f9b2df4/LICENSE)\n\nNOTE: No specific copyright is claimed for this repository changes (for oF binding), but the [Apache License 2.0](LICENSE_APACHE) or [MIT License](LICENSE_MIT) can be applied if necessary.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunatsufumiya%2Fofxhttplib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunatsufumiya%2Fofxhttplib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunatsufumiya%2Fofxhttplib/lists"}