如何保存完整的URL?(How to save the complete URL called?)

系统教程 行业动态 更新时间:2024-06-14 16:55:57
如何保存完整的URL?(How to save the complete URL called?)

我希望能够保存完整的URL以调用一个包含所有参数的页面?

dim fs,f fs=Server.CreateObject("Scripting.FileSystemObject") f=fs.OpenTextFile("D:\www\log.txt", 8, True) f.WriteLine(" ") f.WriteLine(" ") f.Write(" : ") f.Write(" : ") f.Write(Request.QueryString("type"))

我相信上面的代码会存储其中一个参数。 但是,我想要能够捕获完整的URL?

f.Write(Context.Request.Url.Host)

只让我第一部分?

I want to be able to save the complete URL called to reach a page including all the parameters ?

dim fs,f fs=Server.CreateObject("Scripting.FileSystemObject") f=fs.OpenTextFile("D:\www\log.txt", 8, True) f.WriteLine(" ") f.WriteLine(" ") f.Write(" : ") f.Write(" : ") f.Write(Request.QueryString("type"))

I believe the above code will store one of the parameters. However i want to be able to capture the complete URL?

f.Write(Context.Request.Url.Host)

only gets me the first part?

最满意答案

尝试使用Context.Request.Url.AbsoluteUri

Try using Context.Request.Url.AbsoluteUri

更多推荐

本文发布于:2023-04-10 11:22:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/df924bf7c74bfb77f701daebe8d2f923.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:完整   URL   save   complete   called

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!