-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to send correct post data when navigation? #1238
Comments
Sorry, this question got lost in our backlog for a while :( ... We had fixed some bugs around this code, please let me know if you still need help with this. Also, if this is a UWP app, I'd recommend using InMemoryRandomAccessStream instead of MemoryStream as the WinRT MemoryStream has a known issue. |
This still have problem in WPF. I found that the MemoryStream if not use the "using" keyword, it works fine.... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We are using the following code to navigate to the specific page with the form data. But our backend cannot get the correct form data. It always is null.
Please help me check if there are some issues in my code.
`
string formData ="&name=abc&age=10";
byte[] pramByte = Encoding.ASCII.GetBytes(formData);
using(Stream stream = new MemoryStream(pramByte))
{
CoreWebView2WebResourceRequest request =
this.browser.CoreWebView2.Environment.CreateWebResourceRequest("http://localhost:8080/test", "POST", stream, "Content-
Type: application/x-www-form-urlencoded");
}
`
The text was updated successfully, but these errors were encountered: