Send Image via HTTP header
Posted: Tue Mar 05, 2019 6:19 pm
Hi Forum,
I want to receive an image via http in my server.
to get the length of my header value I use:
my problem is that the value is to long and my server throws an error (the Headers field is to long)
My question is.
How can I send a long Header value? Do I have to receive chunks and stitch them together to one long string?
One more thing -> how long is the max. header value I can receive?
Many thanks for your help .
I want to receive an image via http in my server.
to get the length of my header value I use:
- size_t httpd_req_get_hdr_value_len(httpd_req_t *r, const char *field)
- W (17168) httpd_parse: parse_block: response uri/header too big
- W (17168) httpd_txrx: httpd_resp_send_err: 431 Request Header Fields Too Large - Header fields are too long for server to interpret
- W (17188) httpd_parse: parse_block: incomplete (0/128) with parser error = 16
- W (17188) httpd_txrx: httpd_resp_send_err: 400 Bad Request - Server unable to understand request due to invalid syntax
- W (17208) httpd_parse: parse_block: incomplete (0/78) with parser error = 16
- W (17208) httpd_txrx: httpd_resp_send_err: 400 Bad Request - Server unable to understand request due to invalid syntax
- W (17218) httpd_txrx: httpd_sock_err: error in send : 104
How can I send a long Header value? Do I have to receive chunks and stitch them together to one long string?
One more thing -> how long is the max. header value I can receive?
Many thanks for your help .