Skip to content

Commit a45a7bb

Browse files
Add documentation to resolve the "Header Fields are too long" issue (#4)
Setting CONFIG_HTTPD_MAX_URI_LEN=1024 in your project's sdkconfig.defaults file will ensure the captive portal works on more devices, like Android. Also applied the setting as under the examples. Fixes tonyp7#147 Authored-by: Adam McDaniel <[email protected]>
1 parent 45e7ed5 commit a45a7bb

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,12 @@ EXTRA_COMPONENT_DIRS := components/
123123
include $(IDF_PATH)/make/project.mk
124124
```
125125

126+
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.
127+
128+
```config
129+
CONFIG_HTTPD_MAX_URI_LEN=1024
130+
```
131+
126132
Once this is done, you can now in your user code add the header:
127133

128134
```c
+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
CONFIG_LWIP_IPV6=y
2+
CONFIG_HTTPD_MAX_URI_LEN=1024

examples/http_hook/sdkconfig.defaults

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
CONFIG_LWIP_IPV6=y
2+
CONFIG_HTTPD_MAX_URI_LEN=1024

0 commit comments

Comments
 (0)