mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
Expand the example code - need to actually implement a working example
This commit is contained in:
@@ -185,9 +185,11 @@ namespace CefSharp.Wpf.Example.ViewModels
|
||||
{
|
||||
var frame = WebBrowser.GetMainFrame();
|
||||
|
||||
var request = frame.CreateRequest();
|
||||
//Create a new request knowing we'd like to use PostData
|
||||
var request = frame.CreateRequest(initializePostData:true);
|
||||
request.Method = "POST";
|
||||
request.Url = "http://www.google.com.au";
|
||||
request.Url = "custom://cefsharp/PostDataTest.html";
|
||||
request.PostData.AddData("test=123&data=456");
|
||||
|
||||
frame.LoadRequest(request);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user