I need to reach to a XML based page and read the XML content. The XML page is accessible via HTTPS however it does not require any authentication.
Here is my code (Thanks to Padas from an earlier question):
DataToSend = "id=1"
set xmlhttp = server.Createobject("MSXML2.ServerXMLHTTP.6.0")
xmlhttp.setOption 2, 13056
xmlhttp.Open "POST","https://<Server IP Address>:<Port>/<Page Details>",false
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
Response.ContentType = "text/xml"
Set xmlhttp = nothing
The page provides: XML Parsing Error: no element found. (Firefox)
When I create a page with the exact XML structure and use that in my code, it works:
Instead of this:
<Server IP Address>:<Port>/<Page Details>",false
I use this (same XML)
It has to be the Certificates and HTTPS which corrupts this request.
I do not have a Certificate but an Exception is already added.
How can I achieve my goal? Will 'MSXML2.ServerXMLHTTP.6.0'
help me or are there any alternatives for SSL?
Thank you in advance