I suspect that another solution may be to use some of the code in this sketch…
where an HTTP GET request is made without the use of an HTTPClient library.
Pete.