Code:
Set objServerXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
' Opens the connection to the remote server.
objServerXMLHTTP.Open "GET", strRequestPath, False
objServerXMLHTTP.SetRequestHeader "Content-type", "text/html;"
' Actually Sends the request and returns the data:
objServerXMLHTTP.Send
strOutput = objServerXMLHTTP.responseText
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open
objStream.WriteText strOutput
objStream.SaveToFile strResponsePath, 2
Set objStream = Nothing
Set objServerXMLHTTP = Nothing
I need to set the encoding somewhere in here to charset= 8859-1
Can someone advise please?