diff --git a/README.md b/README.md index 43248f3d..48f647f5 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,12 @@ EXTRA_COMPONENT_DIRS := components/ include $(IDF_PATH)/make/project.mk ``` +Update your `sdkconfig.defaults` to allow for larger HTTP Request URL lengths. This is required by some operating systems in order to use its captive portal UI to configure wifi. + +```config +CONFIG_HTTPD_MAX_URI_LEN=1024 +``` + Once this is done, you can now in your user code add the header: ```c diff --git a/examples/default_demo/sdkconfig.defaults b/examples/default_demo/sdkconfig.defaults index f44c06f4..af997d5b 100644 --- a/examples/default_demo/sdkconfig.defaults +++ b/examples/default_demo/sdkconfig.defaults @@ -1 +1,2 @@ CONFIG_LWIP_IPV6=y +CONFIG_HTTPD_MAX_URI_LEN=1024 diff --git a/examples/http_hook/sdkconfig.defaults b/examples/http_hook/sdkconfig.defaults index f44c06f4..af997d5b 100644 --- a/examples/http_hook/sdkconfig.defaults +++ b/examples/http_hook/sdkconfig.defaults @@ -1 +1,2 @@ CONFIG_LWIP_IPV6=y +CONFIG_HTTPD_MAX_URI_LEN=1024