Response is too delayed for HTTPClient.post() request

Yatheesha
Posts: 2
Joined: Fri Feb 08, 2019 10:45 am

Response is too delayed for HTTPClient.post() request

Postby Yatheesha » Fri Feb 08, 2019 11:08 am

Sir/Madam,
I want to post a https request in esp32. Currently i am using HTTPClient library for it and it working fine. But why the response is too delayed(more than 2.5seconds) and i am getting good speed in esp8266(less than 600ms). Please help me to solve this issue

ESP_tuanpm
Posts: 14
Joined: Sat Dec 05, 2015 7:59 am

Re: Response is too delayed for HTTPClient.post() request

Postby ESP_tuanpm » Mon Feb 11, 2019 12:34 pm

Hi @Yatheesha

Did you use esp_http_client_read to read the data? If yes and you provide the len parameter more than the number of bytes to read, then http_client will wait for the end of the timeout to return. You can use esp_http_client_get_content_length to know the exact number of bytes to read before calling the read function.

Who is online

Users browsing this forum: No registered users and 32 guests