req icon indicating copy to clipboard operation
req copied to clipboard

对request.RawURL 字段的疑问

Open N0el4kLs opened this issue 7 months ago • 1 comments

大佬你好,

Request.RawURL 的值是直接来自于 Send() 方法传入的地址。如果使用 SetQueryString() 等方法设置查询字符,并不会影响到 RawURL 字段。

这里想请教大佬两个问题:

  1. RawURL 这个字段表示的是什么意思?
  2. 如果我想要获取到包括 query 参数在内的完整请求 URL 地址,我应该怎么做?

N0el4kLs avatar Jun 29 '24 11:06 N0el4kLs