开发者

What's the deal with dontEscape support in Uri? .NET 3.5

开发者 https://www.devze.com 2022-12-08 01:55 出处:网络
Documentation state that dontEscape is depr开发者_JS百科ecated and always false. However it actually works. Is it a good idea to use it anyway, or is there any other alternative to send non RFC comp

Documentation state that dontEscape is depr开发者_JS百科ecated and always false.

However it actually works. Is it a good idea to use it anyway, or is there any other alternative to send non RFC compliant Http requests?

Sample Code:

Dim U As New Uri("http://www.google.com/>", True)
Dim W As New Net.WebClient()
WL(W.DownloadString(U))


"The method has been deprecated. Please use GetComponents() or static UnescapeDataString() to unescape a Uri component or a string. http://go.microsoft.com/fwlink/?linkid=14202"

Citation from obsolete attribute. Have you tried this approaches?

0

精彩评论

暂无评论...
验证码 换一张
取 消