Use EVGA own update endpoint to download new app releases
javydekoning opened this issue · comments
Javy de Koning commented
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:
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()
Javy de Koning commented
Fixed on latest commit