I need a post request for a login. I'm using the webview2 package in WPF and using it.
My code is this:
HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, new Uri("Sample_url"));
request.Content = new FormUrlEncodedContent(new[] {
new KeyValuePair<string, string>("email", email),
new KeyValuePair<string, string>("password", "123"),
});
// webview2 does not contain a defenition for 'NavigateWithHttpRequestMessage'
Browser.NavigateWithHttpRequestMessage();
what i want to do is login the user in first then show him the view.