????????C#?з???HttpPost???????????????????????
????1.????????Base64??????  ???postData?????????? strData????Base64?????????????’+‘?????滻??????????????????Url???????????ò????????Base64????????????????£?
//???????????????
public string HttpConnectToServer(string ServerPage??string strXml??string strData)
{
//Base64???? ????????????
byte[] buffer = Encoding.Default.GetBytes(strData);
string Base64StrData = Convert.ToBase64String(buffer).Replace("+"?? "%2B");//??????
string postData = "strXml=" + strXml+"&strData="+Base64StrData;
byte[] dataArray = Encoding.Default.GetBytes(postData);
//????????
.......
.......
return res;
}
????2.???????????????????????á????????????£?
public string MyAction(string strXml?? string strData)
{
//Base64????
byte[] buffer = Convert.FromBase64String(strData);
string Data = Encoding.Default.GetString(buffer);
//??????????????з????strData???? ?????y?????Data
........
........
}