esp_http_client chunked REQUEST

mincher
Posts: 2
Joined: Fri Dec 07, 2018 8:07 pm

esp_http_client chunked REQUEST

Postby mincher » Fri Dec 07, 2018 8:18 pm

Is it possible to send a chunked request with the esp_http_client API?

I'd like to send the request (POST) and headers (including Transfer-Encoding: chunked) and then be able to send the data in chunks, such as:

send_chunk(ptr1, len1);
send_chunk(ptr1, len2);
...
send_chunk(ptrN, lenN);
send_chunk(NULL, 0);


Do I need to roll my own version of the esp_http_client_perform to do this using the _write to send the chunk header and the data?

Thanks.

mikea101
Posts: 6
Joined: Wed Nov 21, 2018 6:53 pm

Re: esp_http_client chunked REQUEST

Postby mikea101 » Sat Sep 12, 2020 6:22 pm

Espressif: Any solution for this?

Without a chunked method, the esp_http_client is not very useful!!

Who is online

Users browsing this forum: ESP_rrtandler, zelenecul and 142 guests