WebBrowserExtensionsLoadUrlWithPostData Method |
Version 73.1.130 Note: This API is now obsolete.
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: 73.1.130.0 (73.1.130.0)
Syntax [ObsoleteAttribute("This method will be removed in version 75 as it has become unreliable see https://github.com/cefsharp/CefSharp/issues/2705 for details.")]
public static void LoadUrlWithPostData(
this IWebBrowser browser,
string url,
byte[] postDataBytes,
string contentType = null
)
public:
[ExtensionAttribute]
[ObsoleteAttribute(L"This method will be removed in version 75 as it has become unreliable see https://github.com/cefsharp/CefSharp/issues/2705 for details.")]
static void LoadUrlWithPostData(
IWebBrowser^ browser,
String^ url,
array<unsigned char>^ postDataBytes,
String^ contentType = nullptr
)
Parameters
- browser
- Type: CefSharpIWebBrowser
- url
- Type: SystemString
- postDataBytes
- Type: SystemByte
- contentType (Optional)
- Type: SystemString
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).
Remarks This is an extension method
See Also