HTTPClient - response status 403 with www.timeapi.org

I’m trying to use the HTTPClient example, and since it’s been included at least 4434 times, I’m assuming that the problem I am encountering (namely, the Response Status is -1 the first time through the loop, and 403 thereafter) is mine.

I can get to other sites, but I would like www.timeapi.org to work – any ideas why it might not? I have simply used the app and flashed it, doing no modifications at all, and I can reach www.timeapi.org/utc/now from my browser.

Thanks for any assistance, as always!

I had the same problem and fixed it by adding the extra http header for the user-agent as per here:

1 Like

Thank you! I’d tried a search earlier, but I missed this.