I think I know what’s happening the function WebRequest can take multiple calls. One is with 7 parameters and another with 9 parameters. You’re using the 9 parameters one with referrer. The one used in the example is 7 parameters which functions slightly differently. Referrer is replaced with headers in the 7 parameter version which allows you to change the User-Agent.