Compartir a través de


WebView.PostUrl(String, Byte[]) Method

Definition

Loads the URL with postData using "POST" method into this WebView.

[Android.Runtime.Register("postUrl", "(Ljava/lang/String;[B)V", "GetPostUrl_Ljava_lang_String_arrayBHandler")]
public virtual void PostUrl (string url, byte[] postData);
[<Android.Runtime.Register("postUrl", "(Ljava/lang/String;[B)V", "GetPostUrl_Ljava_lang_String_arrayBHandler")>]
abstract member PostUrl : string * byte[] -> unit
override this.PostUrl : string * byte[] -> unit

Parameters

url
String

the URL of the resource to load

postData
Byte[]

the data will be passed to "POST" request, which must be be "application/x-www-form-urlencoded" encoded.

Attributes

Remarks

Loads the URL with postData using "POST" method into this WebView. If url is not a network URL, it will be loaded with #loadUrl(String) instead, ignoring the postData param.

Java documentation for android.webkit.WebView.postUrl(java.lang.String, byte[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to