?
Solved

Getting XMLHTTP to work with HTTPS

Posted on 2004-08-23
7
Medium Priority
?
4,140 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 informatio…
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

764 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