javydekoning / chocolatey-fanatec-packages

Choco packages for Fanalab and Fanatec Drivers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use EVGA own update endpoint to download new app releases

javydekoning opened this issue · comments

The EVGA website is really picky about browser headers and often returns HTTP 403 (Forbidden). It even does this from the in-app updater in Precision X1:

EVGA Website issue
https://youtu.be/Fg2IqMgyErs

Updates published at "https://www.evga.com/precisionx1/PX1Update.txt?v=" but website is very picky about HTTP headers. We can spoof a browser header to get it to work, but this is not ideal.

$req = [System.Net.WebRequest]::Create("https://www.evga.com/precisionx1/PX1Update.txt?v=")
$req.Headers.Add('user-agent','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)')
$req.Method="Get"

$res = $req.GetResponse()

Fixed on latest commit