I’m trying to access the Mapillary API from inside Unity; I know my URLs are correct because they return exactly the files I want (vector tile PBFs) when I paste those URLs into Firefox’s address bar; however when I send the exact same URL as a UnityWebRequest, the response that I get is HTML, of a page that shows an “Update Your Browser” message.
Why would the API return data for some clients and not others? It even returns the PBF that I expect when I access the URL via powershell’s Invoke-WebRequest, so it clearly isn’t expecting a real “browser”; so far UnityWebRequest in particular is the only thing that I’ve found that gets the “Update Your Browser” webpage. Do I need to provide (or avoid) some specific User Agent string in order for it to work? Or is there actually some HTTP feature that Unity could be lacking? (This happens whether I’m requesting over HTTP or HTTPS, so it’s not an encryption thing…)