Solved

Getting XMLHTTP to work with HTTPS

Posted on 2004-08-23
7
4,064 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 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

707 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