最近項目需要實現XmlHttp的POST方法到另一服務器上的頁面進行數據的更新
原來由於浏覽器的安全限制
CertCheck
using MSXML
namespace CA
{
public partial class CertCheck : System
{
protected void Page_Load(object sender
{
if (Request[
{
string s = Request[
string[] result = s
Label
System
xmlDoc
System
RegNode
xmlDoc
RegNode = xmlDoc
RegNode
xmlDoc
MSXML
xh
xh
xh
xh
if (xh
{
if (xh
{
Label
}
}
}
}
}
}
VBR
<?xml version=
<root>
</root>
PS: 在xh
CertCheck
using System
using System
namespace CA
{
public partial class CertCheck : System
{
protected void Page_Load(object sender
{
if (Request[
{
string s = Request[
string[] result = s
Label
string param =
byte[] bs = Encoding
HttpWebRequest req = (HttpWebRequest)HttpWebRequest
req
req
req
Stream reqStream = req
reqStream
reqStream
HttpWebResponse myResponse = (HttpWebResponse)req
StreamReader reader = new StreamReader(myResponse
string content = reader
reader
myResponse
Label
}
}
}
}
CAProcess
protected void Page_Load(object sender
{
int Id = int
string Serial = Request
//
Response
Response
}
From:http://tw.wingwit.com/Article/program/net/201311/11972.html