{"id":161,"date":"2026-03-16T15:16:12","date_gmt":"2026-03-16T14:16:12","guid":{"rendered":"https:\/\/elrebo.de\/?p=161"},"modified":"2026-03-16T15:16:12","modified_gmt":"2026-03-16T14:16:12","slug":"http_client","status":"publish","type":"post","link":"https:\/\/www.elrebo.de\/index.php\/2026\/03\/16\/http_client\/","title":{"rendered":"http_client"},"content":{"rendered":"\n<p>An ESP-IDF component for&nbsp;<a href=\"https:\/\/elrebo.de\/index.php\/2026\/02\/20\/physical-computing\/\">Physical Computing<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"block-c7f2a10d-f10d-4f44-99b3-ddb01659d218\">Purpose<\/h2>\n\n\n\n<p id=\"block-e5a9f4fc-abde-431c-807a-ac16505411d2\">An HTTP client for ESP32 systems. <\/p>\n\n\n\n<p id=\"block-e5a9f4fc-abde-431c-807a-ac16505411d2\">This HTTPClient is a copy of the <code>HTTPClient<\/code> from <code>sachin42\/idfcomponents<\/code>.<\/p>\n\n\n\n<p id=\"block-e5a9f4fc-abde-431c-807a-ac16505411d2\"><br>The only change is that now it is allowed to use method <code>addHeader<\/code> to set header &#8220;Authorization&#8221;.<br><br>The original code can be found in GitHub: <a href=\"https:\/\/github.com\/sachin42\/idfcomponents.git\">https:\/\/github.com\/sachin42\/idfcomponents.git<\/a> in directory <code>HTTPClient<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"block-6892f2d3-e35e-4726-adb2-1b871f1297a2\">How it is done<\/h2>\n\n\n\n<p id=\"block-68239c84-e4e0-438a-ae06-3a6fb3a4d2e2\">You need to include <code>HTTPClient.h<\/code>.<\/p>\n\n\n\n<p id=\"block-04e3da60-1b5e-44e4-b8e7-513486e89184\">Now the\u00a0<code>HTTPClient<\/code>\u00a0class can be used.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"block-f58dbd72-b47c-4a85-8bd5-658bf352ac8b\">Where to find it<\/h2>\n\n\n\n<p id=\"block-11d88940-6f97-42da-af7a-c77fa57f8078\"><code>http_client<\/code>\u00a0is published on the ESP Registry at\u00a0<a href=\"https:\/\/components.espressif.com\/components\/elrebo-de\/http_config_server\">https:\/\/components.espressif.com\/components\/elrebo-de\/http_client<\/a>.<\/p>\n\n\n\n<p id=\"block-04470259-782e-47da-a448-0ce0b7e5f3ce\">The source code can be found at\u00a0<a href=\"https:\/\/github.com\/elrebo-de\/http_config_server\">https:\/\/github.com\/elrebo-de\/http_client<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"block-ed37d27d-8eab-4b02-afa6-a88fdb12b5df\">How to use it<\/h2>\n\n\n\n<p id=\"block-5012e084-c0b9-4eb4-b4eb-4d9702c9f78f\">As an ESP-IDF component\u00a0<code>http_client<\/code>\u00a0must be included into idf_component.yml as a dependency. As usual this can be done by executing this command:<\/p>\n\n\n\n<p id=\"block-9c6944ee-94b4-4feb-bf45-e83ac50cb66c\"><code>idf.py add-dependency \"elrebo-de\/http_client^1.0.0\"<\/code><\/p>\n\n\n\n<p id=\"block-5753f62d-164e-422b-aafc-640b23a2dbb4\">Now you can include\u00a0<code>HTTPClient.h<\/code>\u00a0and use the HTTPClient class in your program.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An ESP-IDF component for&nbsp;Physical Computing Purpose An HTTP client for ESP32 systems. This HTTPClient is a copy of the HTTPClient from sachin42\/idfcomponents. The only change is that now it is allowed to use method addHeader to set header &#8220;Authorization&#8221;. The original code can be found in GitHub: https:\/\/github.com\/sachin42\/idfcomponents.git in directory HTTPClient. How it is done [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":164,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-161","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oss"],"_links":{"self":[{"href":"https:\/\/www.elrebo.de\/index.php\/wp-json\/wp\/v2\/posts\/161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elrebo.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.elrebo.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.elrebo.de\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elrebo.de\/index.php\/wp-json\/wp\/v2\/comments?post=161"}],"version-history":[{"count":1,"href":"https:\/\/www.elrebo.de\/index.php\/wp-json\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":163,"href":"https:\/\/www.elrebo.de\/index.php\/wp-json\/wp\/v2\/posts\/161\/revisions\/163"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.elrebo.de\/index.php\/wp-json\/wp\/v2\/media\/164"}],"wp:attachment":[{"href":"https:\/\/www.elrebo.de\/index.php\/wp-json\/wp\/v2\/media?parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.elrebo.de\/index.php\/wp-json\/wp\/v2\/categories?post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.elrebo.de\/index.php\/wp-json\/wp\/v2\/tags?post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}