12,165
社区成员




function getXMLHTTPObj()
{
var C = null;
try
{
C = new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e)
{
try
{
C = new ActiveXObject("Microsoft.XMLHTTP");
}
catch(sc)
{
C = null;
}
}
if( !C && typeof XMLHttpRequest != "undefined" )
{
C = new XMLHttpRequest();
}
return C;
}
function Send(Str,URL)
{
var Http = getXMLHTTPObj()
if( Http )
{
Http.open("POST",URL,false)
Http.send(Str)
return Http.responseText;
}
}
WebRequest request = WebRequest.Create("../IPC/PublicAPI.aspx?API=GetMaliListByPhaseId&phaseTaskId=" + Uri.EscapeDataString(phaseTaskId));
request.Method = "POST";
WebResponse response = request.GetResponse();
Stream dataStream = response.GetResponseStream();
// Open the stream using a StreamReader for easy access.
StreamReader reader = new StreamReader(dataStream);
// Read the content.
string mailList = reader.ReadToEnd();