02 2009 档案
摘要:内网用户或代理上网的用户使用 using System.IO; using System.Net; public string get_html() { string urlStr = "http://www.domain.com"; //設定要獲取的地址 HttpWebRequest hwr = (HttpWebRequest)Htt...
阅读全文
摘要:ASP.NET获取IP与MAC[using C#] 获取服务器的IP地址方法以DNS法较为简单实用,如下: using System.Net; private void ButtonIP_Click(object sender, System.EventArgs e) { System.Net.IPAddress[] addressList = D...
阅读全文
摘要:在ASP中使用 Request.ServerVariables("REMOTE_ADDR") 来取得客户端的IP地址,但如果客户端是使用代理服务器来访问,那取到的就是代理服务器的IP地址,而不是真正的客户端IP地址。 要想透过代理服务器取得客户端的真实IP地址,就要使用 Request.ServerVariables("HTTP_X_FORWARDED_FOR") 来读取。 不过要注意的事,并不...
阅读全文
摘要:MIME类型大全
application/vnd.lotus-1-2-3
3gp video/3gpp
aab application/x-authoware-bin
aam application/x-authoware-map
aas application/x-authoware-seg
ai application/postscript
阅读全文