MSXML2.ServerXMLHTTP.4.0 Source?
Date : March 29 2020, 07:55 AM
To fix the issue you can do Where does the object "MSXML2.ServerXMLHTTP.4.0" come from? Which install package? , Try using this function:- Function ProgIDInstalled(progID)
On Error Resume Next
Dim o : Set o = CreateObject(progID)
ProgIDInstalled = Err.Number = 0
End Function
If ProgIDInstalled("MSXML2.DOMDocument.3.0") Then
' MSXML3 is present '
End If
If ProgIDInstalled("MSXML2.DOMDocument.4.0") Then
' MSXML4 is present '
End If
If ProgIDInstalled("MSXML2.DOMDocument.5.0") Then
' MSXML5 is present '
End If
If ProgIDInstalled("MSXML2.DOMDocument.6.0") Then
' MSXML6 is present '
End If
|
MSXML2.ServerXMLHTTP Call in ASP
Date : March 29 2020, 07:55 AM
help you fix your problem Two suggestions: 1) I found this article, the result of which would be to change your content type header to xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
|
Can someone tell me why I am not getting a response to MSXML2.ServerXMLHTTP.6.0 in classic asp?
Tag : xml , By : Der Ketzer
Date : March 29 2020, 07:55 AM
With these it helps Success! Here was the problem: The reason I got back the question mark was that it was in binary format. ResponseText causes an encoding problem with the doctype in cross browser (which I think is why there are no styles in Chrome and there are styles in IE on the URL itself) The Proxy wasn’t necessary. MSXML2.ServerXMLHTTP.6.0 also causes an encoding error on Atom RSS feeds. url = "https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=myName"
'xmlHttp.setProxy 2, "www.proxy.mydomain.com:80"
Set objHTTP = CreateObject("Microsoft.XMLHTTP")
objHTTP.Open "GET", url, False
objHTTP.Send
rss = BinaryToString(objHTTP.ResponseBody)
Response.Write(rss)
Function BinaryToString(byVal Binary)
'--- Converts the binary content to text using ADODB Stream
'--- Set the return value in case of error
BinaryToString = ""
'--- Creates ADODB Stream
Dim BinaryStream
Set BinaryStream = CreateObject("ADODB.Stream")
'--- Specify stream type
BinaryStream.Type = 1 '--- adTypeBinary
'--- Open the stream And write text/string data to the object
BinaryStream.Open
BinaryStream.Write Binary
'--- Change stream type to text
BinaryStream.Position = 0
BinaryStream.Type = 2 '--- adTypeText
'--- Specify charset for the source text (unicode) data
BinaryStream.CharSet = "UTF-8"
'--- Return converted text from the object
BinaryToString = BinaryStream.ReadText
End Function
|
Msxml2.ServerXMLHTTP sometimes uses proxy, need to disallow this
Date : March 29 2020, 07:55 AM
this one helps. The documentation of the setProxy method oSrvXMLHTTPRequest.setProxy(proxySetting, varProxyServer, varBypassList);
|
MSXML2.ServerXMLHTTP clientcertificate
Tag : vba , By : NeedOptic
Date : March 29 2020, 07:55 AM
hope this fix your issue I'm using MSXML2.ServerXMLHTTP in JScript / VBA and want to set the client certificate path. In WinHTTP.WinHTTPRequest I could use the option '.setClientCertificate', but this seems absent in MSXML2.ServerXMLHTTP. , You want .setOption 3, "\value\......."
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms763811(v%3Dvs.85) under `SXH_OPTION_SELECT_CLIENT_SSL_CERT`
oServerXMLHTTPRequest.setOption option, value
H.setOption 3, "CURRENT_USER\\MY\\USERNAME"
SXH_OPTION_SELECT_CLIENT_SSL_CERT = 3 '&H3
|