I had to restart an old project that I created with Spider, PHP and HTML.
After an update from PHP 7.x to PHP 8.1.x at the web host, the HTTPRequest calls apparently no longer work. I am supposed to fix this now.
Well, I see the error shown in the screenshot in the browser console: Uncaught TypeError: a.charAt is not a function.

I have also used a HTTP-Request() derivative published by Kiffi, which returns more information.
Here I get the following back in the HTTPRequest callback:
{“readyState”:0, “status”:0, “statusText”: “error”}
Does anyone have an idea where I need to look here to fix the problem? I don't have much experience in JS and would appreciate any helpful tips.