日期:2014-05-17  浏览次数:20852 次

MSXML2.ServerXMLHTTP 发送cookie我怎么测试不成功,大家指点下

http://b.asp.com/cc.asp内容如下:
--------------------------------------------------
<%=request.Cookies( "myName ")%>


-------------------------------------------------
http://b.asp.com/index.asp内容如下:
--------------------------------------------------
<%
Set   xmlHTTP   =   CreateObject( "MSXML2.ServerXMLHTTP ")
xmlHTTP.open   "GET ",   "http://b.asp.com/cc.asp ",false
xmlHttp.setRequestHeader   "Set-Cookie ",   "myName=xiaomin "
xmlHttp.send
Response.write   xmlHTTP.responseText
Set   xmlHTTP   =   Nothing
%>
--------------------------------------------
为什么运行http://b.asp.com/index.asp没有显示 "xiaomin "????
是不是这种发送方式写错了?
大家指点下


------解决方案--------------------
xmlHttp.setRequestHeader "Cookie ", "myName=xiaomin "

Set-Cookie是服务器用的