views:

169

answers:

1

Documentation state that dontEscape is deprecated 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))
+2  A: 

"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?

Restuta
That's just for reading though, they won't change what HttpRequest sends.
dr. evil
Can you show some code, cos I've tried to write a sample application and get correct encoding.
Restuta
Added sample code, run it use a proxy/sniffer to see what it sends
dr. evil
Wow actually it did sent it :D Lol I'll just rephrase the question.
dr. evil
I've just tried and can't found other way :(, it's also interesting to know original task. I mean why you need to send non RFC compliant requests?
Restuta