日期:2014-05-16 浏览次数:20670 次
public void SendHeader(string sHttpVersion, string sMIMEHeader, int iTotBytes, string sStatusCode, ref Socket mySocket)
{
string sBuffer = "";
if (sMIMEHeader.Length == 0)
{
sMIMEHeader = "text/html";
}
sBuffer = sBuffer + sHttpVersion + sStatusCode + "\r\n";
sBuffer = sBuffer + "Server:cx1193719-b\r\n";
sBuffer = sBuffer + "Content-Type:" + sMIMEHeader + "\r\n";
sBuffer = sBuffer + "Accept-Ranger:bytes\r\n";
sBuffer = sBuffer + "Content-Length:" + iTotBytes + "\r\n\r\n";
byte[] bSendData = Encoding.ASCII.GetBytes(sBuffer);
SendToBrowser(bSendData,ref mySocket);
LogToListBox("总字节:" + iTotBytes.ToString());
}
$.getJSON(
'/PnrExist?Pnr=HQTE11&jsonpcallback=?',
function (res) {
var data = res.Data;
&