Solved

Getting XMLHTTP to work with HTTPS

Posted on 2004-08-23
7
3,943 Views
Last Modified: 2008-01-09
msxml3.dll
I get the following error when trying to connect with SSL:

-->msxml3.dll error '800c000e'
A security problem occurred.
or
-->msxml3.dll error '800c0008'
The download of the specified resource has failed.


Object works well using http but fails on https. I'm using the following code:

<%
dim xml
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "POST", "https://myserver/m/default.asp", False
xml.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xml.Send "myusername=xxxxxx&mypassword=xxxxx"

xml.Open "get", "https://myserver/m/xxx.asp", false
xml.Send

If xml.readyState <> 4 then
xml.waitForResponse 4
End If

if Err.Number <> 0 then
response.write "An error occured"
else
response.write xml.ResponseText
end if
%>


I'm currently on version 3.  Can someone tell me if I need to be in version 4 and if need to have a client certificate.  Currently the server is configured to not require a client certificate.

Thank you!!!!
0
Comment
Question by:grego122
  • 2
  • 2
7 Comments
 
LVL 15

Expert Comment

by:joeposter649
ID: 11873817
I think you want to use ServerXMLHTTP...
http://support.microsoft.com/default.aspx?scid=kb;EN-US;290761
0
 

Author Comment

by:grego122
ID: 11874618
Actually, I had made this  change earlier as follow:

  set xml = Server.CreateObject("Msxml2.SERVERXMLHTTP")
0
 
LVL 15

Accepted Solution

by:
joeposter649 earned 125 total points
ID: 11874727
ServerXMLHTTP includes SSL certificate support in MSXML 3.0 Service Pack 1.
0
 

Expert Comment

by:aprenot
ID: 11875086
I am not positive on this one, but I believe that you need to specify the SSL port in the URL - similar to "https://myserver:443/m/default.asp". You will need to make sure that "myserver" has an SSL cert installed, but you shouldn't need a local (on the server the page is running on) SSL cert.  Hope this helps.
0
 

Author Comment

by:grego122
ID: 11875142
The support is limited if the server does not require a client certificate.  I know I have msxml3.dll version 3 but not sure of the service pack.  Redit shows version 3.0 and I believe that if I had service pack 1 then it would show 3.01.

So it seems the first thing I should do is make sure is:

1)  I'm at least at version 3 SP1
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
two-way Authentication ASP 3 89
EOF BOF error classic asp 8 46
INNER JOIN ? 8 45
Issues with Insert statement 12 25
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now