bozer
asked on
ServerXMLHTTP 6.0 and HTTPS
Hello experts,
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"
dim xmlhttp
set xmlhttp = server.Createobject("MSXML 2.ServerXM LHTTP.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-ur lencoded"
xmlhttp.send DataToSend
Response.ContentType = "text/xml"
Response.Write xmlhttp.responsexml.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:
xmlhttp.Open "POST","https://<Server IP Address>:<Port>/<Page Details>",false
I use this (same XML)
xmlhttp.Open "POST","http://localhost//test/test.asp",false
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
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"
dim xmlhttp
set xmlhttp = server.Createobject("MSXML
xmlhttp.setOption 2, 13056
xmlhttp.Open "POST","https://<Server IP Address>:<Port>/<Page Details>",false
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-ur
xmlhttp.send DataToSend
Response.ContentType = "text/xml"
Response.Write xmlhttp.responsexml.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:
xmlhttp.Open "POST","https://<Server IP Address>:<Port>/<Page Details>",false
I use this (same XML)
xmlhttp.Open "POST","http://localhost//test/test.asp",false
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'
Thank you in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER