發布時間:2020-08-07 04:58 作者:獨孤劍 閱讀:1910
using System.Web; namespace WebApplication6 { /// <summary> /// Summary description for Demo2 /// </summary> public class Demo2 : IHttpHandler { public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; context.Response.Write("IP: " + context.Request.UserHostAddress.ToString()); context.Response.Write("IP: " + HttpContext.Current.Request.UserHostAddress.ToString()); } public bool IsReusable { get { return false; } } } }
微信打賞, 微信掃一掃
支付寶打賞, 支付寶掃一掃
如果文章對您有幫助,歡迎給作者打賞