以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- e.Headers.ContainsKey (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=192647) |
-- 作者:zhenghangbo -- 发布时间:2024/7/9 11:06:00 -- e.Headers.ContainsKey If e.Headers.ContainsKey("X-Forwarded-For") Then Dim ip As String= e.Request.Headers("X-Forwarded-For").ToString Dim ipp As String = e.Request.Headers("X-Forwarded-For").ToString Else Dim ipp As String =e.Request.RemoteEndPoint.ToString Dim ip As String =e.Request.RemoteEndPoint.Address.ToString End If 该怎么判断事件头是否包含某个关键字?
|
-- 作者:有点蓝 -- 发布时间:2024/7/9 11:13:00 -- For Each k As String In e.Headers.Keys if k = "某值" then …… Next
|