Im trying to work out how to send post data directly to a url with cefsharp. Here is an example of what I want to send:
var values = new Dictionary<string, string>
{
{ "thing1", "hello" },
{ "thing2", "world" }
};
FormUrlEncodedContent content = new FormUrlEncodedContent(values);
Which will create thing1=hello&thing2=world
I want to send this POST data to the url http://example.com/mydata.php
using the existing browser with cefsharp.
From what I can see
browser.Load("http://example.com/mydata.php");
Has no way to attach POST data, is there a way I can do this?
Basically I need to keep the same cookies that the browser already has, so if there is another way to do this for example using HttpWebRequest with the cefsharp ChromiumWebBrowser cookies then syncing them again after that request, that would also work, but i'm not sure if that is possible.