esp_http_client: Fix minor bugs in esp_http_client_write and esp_http_client_open APIs
esp_http_client: Fix minor bugs in esp_http_client_write and esp_http_client_open APIs

`esp_http_client_write` API puts a constraint on the maximum length of the data that can be
written, which is equal to client handle buffer size, but the data to be sent can be more
than that, so in this case, this API has to be called multiple times.

In `esp_http_client_open` API, the return value of `transport_write` API, used to send HTTP
request, is not checked, and in rare cases, data written will be less than expected which will
cause a problem. So there are fixes for these minor issues in this MR.

espressif/esp-idf,www220/esp-idf,www220/esp-idf,www220/esp-idf,armada-ai/esp-idf,espressif/esp-idf,armada-ai/esp-idf,armada-ai/esp-idf,mashaoze/esp-idf,www220/esp-idf,espressif/esp-idf,mashaoze/esp-idf,mashaoze/esp-idf,armada-ai/esp-idf,espressif/esp-idf,www220/esp-idf,mashaoze/esp-idf,mashaoze/esp-idf