开发者

How to send a post request to a Gtk WebView?

开发者 https://www.devze.com 2023-01-05 20:53 出处:网络
This is basically what I\'ve got. var webview = new WebKit.WebView(); content_area.Add(webview); var request = new NetworkRequest(\"http://example.com/resources/1\");

This is basically what I've got.

var webview = new WebKit.WebView();
content_area.Add(webview);
var request = new NetworkRequest("http://example.com/resources/1");
request.Data.Add("description", "a description");
webview.LoadR开发者_JAVA百科equest(request);

I'm assuming request.Data is where I put variables, but it seems to be going through as a GET request.

0

精彩评论

暂无评论...
验证码 换一张
取 消