string SID="cdbca620-436f-448c-9641-e92b50f5c4d6"; string URL="http://si.goldencan.com/GetData.aspx?ver=2.0&SID=" + SID; string PageURL = Server.UrlEncode(Request.Url.PathAndQuery); URL += "&PageURL=" + PageURL; if (Request.Url.Authority != null){ URL += "&Host=" + Server.UrlEncode(Request.Url.Authority.ToString()); } if (Request.UserAgent != null) { URL += "&UserAgent=" + Server.UrlEncode(Request.UserAgent.ToString()); }; if (Request.UserHostAddress != null) { URL += "&IPAddress=" + Server.UrlEncode(Request.UserHostAddress.ToString()); } System.Net.WebResponse objResponse = System.Net.WebRequest.Create(URL).GetResponse(); System.IO.StreamReader SR = new System.IO.StreamReader(objResponse.GetResponseStream()); Response.Write(SR.ReadToEnd());

No comments:

Post a Comment