Code: Select all
content_length = -1 But the content length is not -1, its 40
You should revisit the example because you simply cannot have esp_http_client_fetch_headers and esp_http_client_perform playing nice together. That will break it. (I think I was wrong about _read though in my previous comment; I've been using the ON_DATA event callback so I'm not sure.)