mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
Merge branch 'bugfix/http_client_ci' into 'master'
esp_http_client example: Use dl.espressif.com URL for performing request with Range header Closes IDFCI-1113 See merge request espressif/esp-idf!17256
This commit is contained in:
commit
229ed08484
@ -34,6 +34,9 @@ def test_examples_protocol_esp_http_client(env, extra_data):
|
|||||||
# content-len for chunked encoding is typically -1, could be a positive length in some cases
|
# content-len for chunked encoding is typically -1, could be a positive length in some cases
|
||||||
dut1.expect(re.compile(r'HTTP Stream reader Status = 200, content_length = (\d)'))
|
dut1.expect(re.compile(r'HTTP Stream reader Status = 200, content_length = (\d)'))
|
||||||
dut1.expect(re.compile(r'Last esp error code: 0x8001'))
|
dut1.expect(re.compile(r'Last esp error code: 0x8001'))
|
||||||
|
dut1.expect(re.compile(r'HTTP Status = 206, content_length = (\d)'))
|
||||||
|
dut1.expect(re.compile(r'HTTP Status = 206, content_length = 10'))
|
||||||
|
dut1.expect(re.compile(r'HTTP Status = 206, content_length = 10'))
|
||||||
dut1.expect('Finish http example')
|
dut1.expect('Finish http example')
|
||||||
|
|
||||||
# test mbedtls dynamic resource
|
# test mbedtls dynamic resource
|
||||||
@ -60,6 +63,9 @@ def test_examples_protocol_esp_http_client(env, extra_data):
|
|||||||
# content-len for chunked encoding is typically -1, could be a positive length in some cases
|
# content-len for chunked encoding is typically -1, could be a positive length in some cases
|
||||||
dut1.expect(re.compile(r'HTTP Stream reader Status = 200, content_length = (\d)'))
|
dut1.expect(re.compile(r'HTTP Stream reader Status = 200, content_length = (\d)'))
|
||||||
dut1.expect(re.compile(r'Last esp error code: 0x8001'))
|
dut1.expect(re.compile(r'Last esp error code: 0x8001'))
|
||||||
|
dut1.expect(re.compile(r'HTTP Status = 206, content_length = (\d)'))
|
||||||
|
dut1.expect(re.compile(r'HTTP Status = 206, content_length = 10'))
|
||||||
|
dut1.expect(re.compile(r'HTTP Status = 206, content_length = 10'))
|
||||||
dut1.expect('Finish http example')
|
dut1.expect('Finish http example')
|
||||||
|
|
||||||
|
|
||||||
|
@ -670,8 +670,9 @@ static void http_native_request(void)
|
|||||||
static void http_partial_download(void)
|
static void http_partial_download(void)
|
||||||
{
|
{
|
||||||
esp_http_client_config_t config = {
|
esp_http_client_config_t config = {
|
||||||
.url = "http://jigsaw.w3.org/HTTP/TE/foo.txt",
|
.url = "https://dl.espressif.com/dl/esp-idf/ci/esp_http_client_demo.txt",
|
||||||
.event_handler = _http_event_handler,
|
.event_handler = _http_event_handler,
|
||||||
|
.crt_bundle_attach = esp_crt_bundle_attach,
|
||||||
};
|
};
|
||||||
esp_http_client_handle_t client = esp_http_client_init(&config);
|
esp_http_client_handle_t client = esp_http_client_init(&config);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user