Here are the only libraries included with the board. As you can see, HTTPClient is NOT included, so you will need to find a 3rd party library. Pick one and check its compatibility; if it doesn't work, pick another, etc. Sometimes the Arduino Docs list compatible libraries.
Here is the MKR WiFi 1010 Hardware page
https://store.arduino.cc/products/arduino-mkr-wifi-1010
on it is this
Click that and it goes to
https://docs.arduino.cc/hardware/mkr-wifi-1010/
You will see this
Then yiu will see this



