地址 URL Http://www.contoso.com/virdir/page.html/tail
用 Request.PathInfo 获取 tail
// Iterate through the Form collection and write // the values to the file with HTML encoding. // String[] formArray = Request.Form.AllKeys; foreach (string s in Request.Form) { sw.WriteLine("Form: " + Server.HtmlEncode(s)); }
来自msdn