WebBrowser supports url / uri encoding without decrypting

I have a web browser in the win form application and I am having trouble opening the URL.

The url that I pass as a new instance URLis encoded with:

/ as% 2f ,? as% 3f and = as% 3d

But when I debug my code, I see that the absolute URL, or any of the other in the webbrowser.url.*decoded as / , ? and = .

How to save the encoding URL? URLwill not work if it is not encoded in this way.

+3
source share
2 answers

, URL, :

domain.com/action/doaction/?identity=12354698789

, :

domain.com/logon?returnurl=action%2fdoaction%2f%3fidentity%3d12354698789

-. URL-.

id doaction, :

string orgId = ControllerContext.RouteData.Values["id"].ToString();

url, , , .

+1

?

URL-, HttpRequest.RawUrl. , , .

0

Source: https://habr.com/ru/post/1792169/


All Articles