First post here, I'm running into an issue I didn't have when working on my local machine /w XAMPP.
I've push some basic PHP code on my VPS with a fresh Apache2 and PHP7 install, and one of the file is actually doing a file_get_contents to do a GET request on Trello's API:
$lists = json_decode(file_get_contents("https://api.trello.com/1/boards/<<HIDDEN>>/lists?key={$id}&token={$token}"), true);
The problem is that I'm receiving this HTTP response when doing so:
[Tue Aug 24 14:27:14.132294 2021] [:error] [pid 17956] [client <<HIDDEN>>] PHP Warning: file_get_contents(https://api.trello.com/1/boards/<<HIDDEN>>/lists?key=<<HIDDEN>>&token=<<HIDDEN>>): failed to open stream: HTTP request failed! HTTP/1.1 426 Upgrade Required\r\n in <HIDDEN>/trello.php on line 7, referer: <<HIDDEN>>
I've done some research and I saw that I kinda need to upgrade the call to another HTTP protocol but so far, I have no clues about the way to proceed...
Any advice, tip?
Thanks!