📌  相关文章
📜  request.Scheme request.Path - 方案代码示例

📅  最后修改于: 2022-03-11 14:44:44.881000             🧑  作者: Mango

代码示例1
var scheme = Request.Url.Scheme; // will get http, https, etc.
var host = Request.Url.Host; // will get www.mywebsite.com
var port = Request.Url.Port; // will get the port
var path = Request.Url.AbsolutePath; // should get the /pages/page1.aspx part, can't remember if it only get pages/page1.aspx