cancel
Showing results for 
Search instead for 
Did you mean: 

Classic ASP sample code for AIM Error

Hi,

 

I am trying to run a sample code for the AIM Classic ASP.  I did not change the code except for the values for x_login and x_tran_key.

 

The error message I'm getting is:

 

msxml3.dll error '800c0008'

System error: -2146697208.

 

 

Now, I've also tried to run a sample for the PHP version and that works fine.

 

What am I missing for the ASP sample?

 

 

 

Thanks,

Won

wyang
Member
1 ACCEPTED SOLUTION

Accepted Solutions

Sorry, version 3 doesn't support SSL....use this one:

 

"MSXML2.ServerXMLHTTP.4.0"

 

If you still get the error, you can try using the IServerXMLHTTPRequest setOption method  to set this flag:

 

"SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS"

 

CAVEAT: I don't fully know the ramifications of setting this flag.  Do you're homework on it to make sure it doesn't affect anything else in your app.

 

View solution in original post

7 REPLIES 7

Hi Won,

 

This could be related to the server you are using. Try changing the following line of code in the sample:

 

Set objRequest = Server.CreateObject("Microsoft.XMLHTTP")

 

to

 

Set objRequest = Server.CreateObject("MSXML2.ServerXMLHTTP")

 

 

Thank you,

 

Elaine

Elaine
Trusted Contributor
Trusted Contributor

Allow me to also recommend that you use "MSXML2.ServerXMLHTTP.3.0" for ASP pages. 

 

 

Hey, thanks so much for your help, Elaine!  But unfortunately I'm getting a different error message now with your suggestion:

 

msxml3.dll error '80072f0d'

The certificate authority is invalid or incorrect

 

Thanks,

Won


Hi, jlowery

 

I tried your method too, but getting same error as above with Elaine's...

 

Thanks,

Won

Sorry, version 3 doesn't support SSL....use this one:

 

"MSXML2.ServerXMLHTTP.4.0"

 

If you still get the error, you can try using the IServerXMLHTTPRequest setOption method  to set this flag:

 

"SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS"

 

CAVEAT: I don't fully know the ramifications of setting this flag.  Do you're homework on it to make sure it doesn't affect anything else in your app.

 

jlowery,

 

Thanks again for your help.  I didn't really know how to set the flag variable you suggested, so I did some research and figured out a way.  I've modified the code a little and was able to get it to work!!  Thanks for ALL your help!!

 

 

 

 

CONST SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS = 2;
CONST SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS = 13056;
Set objRequest = Server.CreateObject("MSXML2.ServerXMLHTTP.4.0")
 objRequest.open "POST", post_url, false
 objRequest.setOption SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS, SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS
 objRequest.send post_string
 post_response = objRequest.responseText
Set objRequest = nothing

 

Were you coding without a SSL certificate so that is why you got the error earlier?