Solved

Getting XMLHTTP to work with HTTPS

Posted on 2004-08-23
7
3,902 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

757 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

16 Experts available now in Live!

Get 1:1 Help Now