请帮忙, 浏览器显示: Header fields are too long for server to interpret
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6732
ho 0 tail 12 room 4
load:0x40078000,len:14812
load:0x40080400,len:3792
entry 0x40080694
I (29) boot: ESP-IDF v4.4-dev-3540-g4e03a9c34c-dirty 2nd stage bootloader
I (29) boot: compile time 08:27:10
I (30) boot: chip revision: 1
I (34) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (41) boot.esp32: SPI Speed : 40MHz
I (45) boot.esp32: SPI Mode : DIO
I (50) boot.esp32: SPI Flash Size : 2MB
I (54) boot: Enabling RNG early entropy source...
I (60) boot: Partition Table:
I (63) boot: ## Label Usage Type ST Offset Length
I (71) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (78) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (86) boot: 2 factory factory app 00 00 00010000 00100000
I (93) boot: End of partition table
I (97) boot_comm: chip revision: 1, min. application chip revision: 0
I (104) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=19f60h (106336) map
I (151) esp_image: segment 1: paddr=00029f88 vaddr=3ffb0000 size=03840h ( 14400) load
I (157) esp_image: segment 2: paddr=0002d7d0 vaddr=40080000 size=02848h ( 10312) load
I (162) esp_image: segment 3: paddr=00030020 vaddr=400d0020 size=88a80h (559744) map
I (368) esp_image: segment 4: paddr=000b8aa8 vaddr=40082848 size=11b8ch ( 72588) load
I (398) esp_image: segment 5: paddr=000ca63c vaddr=50000000 size=00010h ( 16) load
I (409) boot: Loaded app from partition at offset 0x10000
I (409) boot: Disabling RNG early entropy source...
I (421) cpu_start: Pro cpu up.
I (421) cpu_start: Starting app cpu, entry point is 0x40081168
I (0) cpu_start: App cpu up.
I (435) cpu_start: Pro cpu start user code
I (435) cpu_start: cpu freq: 160000000
I (435) cpu_start: Application information:
I (440) cpu_start: Project name: https_server
I (445) cpu_start: App version: 1
I (449) cpu_start: Compile time: Oct 26 2021 09:01:29
I (455) cpu_start: ELF file SHA256: ebcb9a42f7898d12...
I (461) cpu_start: ESP-IDF: v4.4-dev-3540-g4e03a9c34c-dirty
I (469) heap_init: Initializing. RAM available for dynamic allocation:
I (476) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (482) heap_init: At 3FFB7670 len 00028990 (162 KiB): DRAM
I (488) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (494) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (501) heap_init: At 400943D4 len 0000BC2C (47 KiB): IRAM
I (508) spi_flash: detected chip: generic
I (512) spi_flash: flash io: dio
W (516) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (530) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (603) wifi:wifi driver task: 3ffbff78, prio:23, stack:6656, core=0
I (603) system_api: Base MAC address is not set
I (603) system_api: read default base MAC address from EFUSE
I (623) wifi:wifi firmware version: f84e709
I (623) wifi:wifi certification version: v7.0
I (623) wifi:config NVS flash: enabled
I (623) wifi:config nano formating: disabled
I (623) wifi:Init data frame dynamic rx buffer num: 32
I (633) wifi:Init management frame dynamic rx buffer num: 32
I (633) wifi:Init management short buffer num: 32
I (643) wifi:Init dynamic tx buffer num: 32
I (643) wifi:Init static rx buffer size: 1600
I (643) wifi:Init static rx buffer num: 10
I (653) wifi:Init dynamic rx buffer num: 32
I (653) wifi_init: rx ba win: 6
I (663) wifi_init: tcpip mbox: 32
I (663) wifi_init: udp mbox: 6
I (663) wifi_init: tcp mbox: 6
I (673) wifi_init: tcp tx win: 5744
I (673) wifi_init: tcp rx win: 5744
I (673) wifi_init: tcp mss: 1440
I (683) wifi_init: WiFi IRAM OP enabled
I (683) wifi_init: WiFi RX IRAM OP enabled
I (693) example_connect: Connecting to settle1...
I (693) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07
I (803) wifi:mode : sta (3c:61:05:3f:60:48)
I (803) wifi:enable tsf
I (803) example_connect: Waiting for IP(s)
I (2853) wifi<9,2>, old:<1,0>, ap:<255,255>, sta:<9,2>, prof:1
I (3593) wifi:state: init -> auth (b0)
I (3603) wifi:state: auth -> assoc (0)
I (3613) wifi:state: assoc -> run (10)
I (3633) wifi:connected with settle1, aid = 2, channel 9, 40D, bssid = 3c:84:6a: 1b:7a:4a
I (3633) wifi:security: WPA2-PSK, phy: bgn, rssi: -34
I (3633) wifi:pm start, type: 1
W (3693) wifi:<ba-add>idx:0 (ifx:0, 3c:84:6a:1b:7a:4a), tid:6, ssn:2, winSize:64
I (3713) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (4583) example: Starting server
I (4583) esp_https_server: Starting server
I (4583) esp_https_server: Server listening on port 443
I (4583) example: Registering URI handlers
I (4593) esp_netif_handlers: example_connect: sta ip: 192.168.68.65, mask: 255.2 55.252.0, gw: 192.168.68.1
I (4603) example_connect: Got IPv4 event: Interface "example_connect: sta" addre ss: 192.168.68.65
I (5583) example_connect: Got IPv6 event: Interface "example_connect: sta" address: fe80:0000:0000:0000:3e61:05ff:fe3f:6048, type: ESP_IP6_ADDR_IS_LINK_LOCAL
I (5583) example_connect: Connected to example_connect: sta
I (5593) example_connect: - IPv4 address: 192.168.68.65
I (5593) example_connect: - IPv6 address: fe80:0000:0000:0000:3e61:05ff:fe3f:6048, type: ESP_IP6_ADDR_IS_LINK_LOCAL
W (12733) wifi:<ba-add>idx:1 (ifx:0, 3c:84:6a:1b:7a:4a), tid:0, ssn:0, winSize:64
I (12843) esp_https_server: performing session handshake
E (14533) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7780
E (14533) esp_https_server: esp_tls_create_server_session failed
W (14543) httpd: httpd_accept_conn: session creation failed
W (14543) httpd: httpd_server: error accepting new connection
I (14553) esp_https_server: performing session handshake
E (16283) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7780
E (16283) esp_https_server: esp_tls_create_server_session failed
W (16283) httpd: httpd_accept_conn: session creation failed
W (16293) httpd: httpd_server: error accepting new connection
I (22873) esp_https_server: performing session handshake
E (24583) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7780
E (24583) esp_https_server: esp_tls_create_server_session failed
W (24583) httpd: httpd_accept_conn: session creation failed
W (24593) httpd: httpd_server: error accepting new connection
I (24603) esp_https_server: performing session handshake
E (26333) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7780
E (26333) esp_https_server: esp_tls_create_server_session failed
W (26343) httpd: httpd_accept_conn: session creation failed
W (26343) httpd: httpd_server: error accepting new connection
I (26353) esp_https_server: performing session handshake
W (28933) httpd_parse: parse_block: request URI/header too long
W (28933) httpd_txrx: httpd_resp_send_err: 431 Request Header Fields Too Large - Header fields are too long for server to interpret
I (29013) esp_https_server: performing session handshake
E (30723) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7780
E (30723) esp_https_server: esp_tls_create_server_session failed
W (30723) httpd: httpd_accept_conn: session creation failed
W (30723) httpd: httpd_server: error accepting new connection
I (30733) esp_https_server: performing session handshake
W (33343) httpd_parse: parse_block: request URI/header too long
W (33343) httpd_txrx: httpd_resp_send_err: 431 Request Header Fields Too Large - Header fields are too long for server to interpret
I (64033) esp_https_server: performing session handshake
E (65743) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7780
E (65743) esp_https_server: esp_tls_create_server_session failed
W (65753) httpd: httpd_accept_conn: session creation failed
W (65753) httpd: httpd_server: error accepting new connection
I (65763) esp_https_server: performing session handshake
E (67463) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7780
E (67463) esp_https_server: esp_tls_create_server_session failed
W (67473) httpd: httpd_accept_conn: session creation failed
W (67473) httpd: httpd_server: error accepting new connection
I (91483) esp_https_server: performing session handshake
E (93193) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7780
E (93203) esp_https_server: esp_tls_create_server_session failed
W (93203) httpd: httpd_accept_conn: session creation failed
W (93203) httpd: httpd_server: error accepting new connection
I (93213) esp_https_server: performing session handshake
E (94953) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7780
E (94953) esp_https_server: esp_tls_create_server_session failed
W (94953) httpd: httpd_accept_conn: session creation failed
W (94963) httpd: httpd_server: error accepting new connection
I (94973) esp_https_server: performing session handshake
E (96733) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7280
E (96733) esp_https_server: esp_tls_create_server_session failed
W (96743) httpd: httpd_accept_conn: session creation failed
W (96743) httpd: httpd_server: error accepting new connection
I (125893) esp_https_server: performing session handshake
W (129233) httpd_parse: parse_block: request URI/header too long
W (129233) httpd_txrx: httpd_resp_send_err: 431 Request Header Fields Too Large - Header fields are too long for server to interpret
I (129333) esp_https_server: performing session handshake
E (131083) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7780
E (131083) esp_https_server: esp_tls_create_server_session failed
W (131083) httpd: httpd_accept_conn: session creation failed
W (131093) httpd: httpd_server: error accepting new connection
I (131093) esp_https_server: performing session handshake
W (133983) httpd_parse: parse_block: request URI/header too long
W (133983) httpd_txrx: httpd_resp_send_err: 431 Request Header Fields Too Large - Header fields are too long for server to interpret
I (167783) esp_https_server: performing session handshake
E (169493) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7780
E (169493) esp_https_server: esp_tls_create_server_session failed
W (169503) httpd: httpd_accept_conn: session creation failed
W (169503) httpd: httpd_server: error accepting new connection
I (169513) esp_https_server: performing session handshake
E (171243) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7780
E (171243) esp_https_server: esp_tls_create_server_session failed
W (171253) httpd: httpd_accept_conn: session creation failed
W (171253) httpd: httpd_server: error accepting new connection
I (171263) esp_https_server: performing session handshake
E (173103) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7280
E (173103) esp_https_server: esp_tls_create_server_session failed
W (173113) httpd: httpd_accept_conn: session creation failed
W (173113) httpd: httpd_server: error accepting new connection
I (182933) esp_https_server: performing session handshake
W (186013) httpd_parse: parse_block: request URI/header too long
W (186023) httpd_txrx: httpd_resp_send_err: 431 Request Header Fields Too Large - Header fields are too long for server to interpret
I (186093) esp_https_server: performing session handshake
E (187803) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7780
E (187803) esp_https_server: esp_tls_create_server_session failed
W (187813) httpd: httpd_accept_conn: session creation failed
W (187813) httpd: httpd_server: error accepting new connection
I (187823) esp_https_server: performing session handshake
W (190923) httpd_parse: parse_block: request URI/header too long
W (190923) httpd_txrx: httpd_resp_send_err: 431 Request Header Fields Too Large - Header fields are too long for server to interpret
I (192863) esp_https_server: performing session handshake
E (194583) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7780
E (194583) esp_https_server: esp_tls_create_server_session failed
W (194593) httpd: httpd_accept_conn: session creation failed
W (194593) httpd: httpd_server: error accepting new connection
I (194603) esp_https_server: performing session handshake
E (196293) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7780
E (196293) esp_https_server: esp_tls_create_server_session failed
W (196293) httpd: httpd_accept_conn: session creation failed
W (196293) httpd: httpd_server: error accepting new connection
I (196303) esp_https_server: performing session handshake
W (199103) httpd_parse: parse_block: request URI/header too long
W (199103) httpd_txrx: httpd_resp_send_err: 431 Request Header Fields Too Large - Header fields are too long for server to interpret
I (199143) esp_https_server: performing session handshake
E (200863) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x7780
E (200863) esp_https_server: esp_tls_create_server_session failed
W (200873) httpd: httpd_accept_conn: session creation failed
W (200873) httpd: httpd_server: error accepting new connection
I (200883) esp_https_server: performing session handshake
W (203713) httpd_parse: parse_block: request URI/header too long
W (203713) httpd_txrx: httpd_resp_send_err: 431 Request Header Fields Too Large - Header fields are too long for server to interpret
examples\protocols\https_server\simple 不工作
Re: examples\protocols\https_server\simple 不工作
尝试一下增加HTTPD_MAX_REQ_HDR_LEN,在menuconfig-> Component config -> HTTP Server -> Max HTTP Request Header Length 中进行设置
Re: examples\protocols\https_server\simple 不工作
感谢 ESP_ICY 的帮助
我更改了 Max HTTP Request Header Length=2048, Max HTTP URI Length=2048 ,它可以显示“Hello Secure World!”,但是它有两个握手错误,我尝试在所有组件源代码树中搜索 30592 或 hex 7780 ,但找不到。
有没有人可以帮助找到如何解决这个错误? 谢谢!
我更改了 Max HTTP Request Header Length=2048, Max HTTP URI Length=2048 ,它可以显示“Hello Secure World!”,但是它有两个握手错误,我尝试在所有组件源代码树中搜索 30592 或 hex 7780 ,但找不到。
有没有人可以帮助找到如何解决这个错误? 谢谢!
- Attachments
-
- https.PNG (65.27 KiB) Viewed 3734 times
Re: examples\protocols\https_server\simple 不工作
服务器端的 CA 证书不是受信任的,所以浏览器端发送了 Alert,浏览器侧选择了允许非受信任的连接就可以继续访问了,不影响。
Who is online
Users browsing this forum: Baidu [Spider] and 122 guests