Commit Graph

13 Commits

Author SHA1 Message Date
Vikram Dattu bf02ad4015 Fix URL redirection issue
Operation:
In esp_http_client_set_url, we check for if old_host is same as new_host.
Delete and open new connection if host is different.
Issue:
We just pointed client->connection_info.host to old_host and reassigned it.
This made old_host and new_host always point to same location and hence, using old_host with new request.
Fix:
Made a separate copy for old_host using strdup.

Related issue on github: https://github.com/espressif/esp-idf/issues/2631
Related merge request on idf: https://gitlab.espressif.cn:6688/idf/esp-idf/merge_requests/4623/

Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2019-03-28 10:18:32 +08:00
maojianxin e4bf514b88 1.Increase http client time of timeout.
2.Update esp_audio release lib.
2019-01-03 11:29:02 +08:00
Tuan f8a678ce71 update adf lib & fix typo 2019-01-03 01:03:29 +07:00
Tuan a313f53a45 Update esp_http_client 2018-12-25 09:53:39 +08:00
maojianxin 9b78ec6f7b Update : IDF release ver 3.1.
Update : DuerOS ver 3.0.7.
Feature: Support ESP SR.
2018-11-09 10:58:21 +08:00
Tuan PM a0cba1164a HTTP Stream need to handle 30x code and redirect to new location 2018-09-07 11:59:57 +08:00
krzychb 8a591d0515 Updated API Reference section 2018-07-05 20:59:44 +02:00
Tuan 2879d8027c fix error missing packet for http chunked encoding & lost packet with ssl transport
Remove unused var
2018-06-26 10:08:24 +07:00
Tuan PM 8f033d2de8 Sync http from IDF master 2018-05-24 08:19:44 +07:00
Tuan PM 8ee0a94051 improve error handling for esp_http_client
Update esp_http_client from idf

Fixed typo in kconfig
2018-05-18 15:04:14 +07:00
Tuan PM 42ccd127e7 Resolve github#2, do not process header value if key == NULL, remove nused status text, also, return ESP_OK if there are no event_handle function 2018-04-10 17:36:33 +08:00
Tuan PM eadcf5f1e8 http_client:
fix stream write can not return if size > buffer size
using const for transport write
2018-04-06 10:27:45 +08:00
Mao Jian Xin 6b949680e3 Init public version 2018-04-03 17:44:04 +08:00