日期:2014-05-17 浏览次数:20563 次
{ flag:OK } <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><title> </title></head> <body> <form name="form1" method="post" action="Pushreport.aspx" id="form1"> <div> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwULLTE2MTY2ODcyMjlkZLl/M2N9Ig01Vd5vPjUeFSUCWRJe" /> </div> <div> </div> </form> </body> </html>
{ flag:OK }
public string GetResponse(HttpWebResponse res) { responseHeaders = res.Headers; Stream myResponseStream = res.GetResponseStream(); StreamReader myStreamReader = new StreamReader(myResponseStream, Encoding.GetEncoding("utf-8")); string retString = myStreamReader.ReadToEnd(); myStreamReader.Close(); myResponseStream.Close(); res.Close(); return retString; }
protected void Page_Load(object sender, EventArgs e) { string strReturn = "{" + "\r\n" + "flag:OK" + "\r\n" + "}"; Response.Write(strReturn); }