Code: Select all
URL = "https://the rest of the URL”
oSFA = CreateUnoService("com.sun.star.ucb.SimpleFileAccess")
oTextStream = CreateUnoService("com.sun.star.io.TextInputStream")
oStream = oSFA.openFileRead(URL)
oTextStream.setInputStream(oStream)
I know that I can use
Code: Select all
URL = "https://the rest of the URL”
oHttp = CreateObject("Winhttp.WinHttpRequest.5.1")
With oHttp
.Open "GET", URL, False
.setRequestHeader "User-Agent", "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) …
.setRequestHeader "another header”
.setRequestHeader “still more headers”
.setRequestHeader "MyName”,”MyValue”
.send
End With