I am using an URLConnection (named GetData) to retrieve data from a website. I am using the following User-Agent settings.
Window1.GetData.RequestHeader(“User-Agent”) = “Mozilla/5.0 (X11; U; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/123.0.6266.215 Chrome/123.0.6266.215 Safari/537.36”
However, when I query the site
s = “https://marketwatch.com/investing/fund/FCNTX”
me.send(“get”,s)
When the Event ContentReceived is triggered
content as string is empty
Does anyone know what might be the problem. I suspect it involves the User-Agent settings for my Mac (OS 11.7.10).
Thank you in advance.
5 posts - 4 participants