Solved

Getting XMLHTTP to work with HTTPS

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
App wrap my classic asp based webpages (running on mysql database)? 3 122
Summernote required 3 177
Need to rewrite code for checking if a file exists 3 69
alert(innerHTML); 8 32
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…

789 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