An error occurred in the secure channel support - Classic ASP HTTP Request

后端 未结 8 1639
悲&欢浪女
悲&欢浪女 2020-12-29 03:02

I have a classic ASP website running on a Windows Server 2012 box. One page makes a HTTP request to another application over https using code like this:



        
8条回答
  •  忘掉有多难
    2020-12-29 03:33

    I have had the exact same problem after migrating from 2003 to 2008 R2 and found the solution. Change:

    Set objhttp = Server.CreateObject ("MSXML2.ServerXMLHTTP.6.0")

    to:

    Set objhttp = Server.CreateObject ("MSXML2.XMLHTTP.6.0")

    and your problem will go away.

    I tried to find the pros and cons about both objects, but haven't yet found a reason to not use XMLHTTP.

提交回复
热议问题