Click or drag to resize

WebBrowserExtensionsLoadUrlWithPostData Method

Version 91.1.160
Creates a new instance of IRequest with the specified Url and Method = POST and then calls LoadRequest(IRequest). LoadRequest(IRequest) can only be used if a renderer process already exists. In newer versions initially loading about:blank no longer creates a renderer process. You can load a Data Uri initially then call this method. https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 91.1.160.0 (91.1.160.0)
Syntax
public static void LoadUrlWithPostData(
	this IWebBrowser browser,
	string url,
	byte[] postDataBytes,
	string contentType = null
)

Parameters

browser
Type: CefSharpIWebBrowser
browser this method extends
url
Type: SystemString
url to load
postDataBytes
Type: SystemByte
post data as byte array
contentType (Optional)
Type: SystemString
(Optional) if set the Content-Type header will be set

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IWebBrowser. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also