JumboCactuar
Well-known Member
- Joined
- Nov 16, 2016
- Messages
- 788
- Office Version
- 365
- Platform
- Windows
Hi,
i am experimenting with the following:
I read i can add authentication this way by encoding the user and pass as Base64? But unsure how
Also getting the result as JSON, which i can somehow integrate this: xmlhttp.setRequestHeader "Content-Type", "text/json"
Does anyone have any knowledge of this?
Any help appreciated
i am experimenting with the following:
Code:
Sub testXMLHTTP_VBA()Dim xmlhttp As Object, myurl As String
Set xmlhttp = CreateObject("MSXML2.serverXMLHTTP")
myurl = "https://www.mrexcel.com/forum/excel-questions/"
xmlhttp.Open "GET", myurl, False
xmlhttp.Send
MsgBox (xmlhttp.responseText)
End Sub
I read i can add authentication this way by encoding the user and pass as Base64? But unsure how
Also getting the result as JSON, which i can somehow integrate this: xmlhttp.setRequestHeader "Content-Type", "text/json"
Does anyone have any knowledge of this?
Any help appreciated