Java.Net.HttpURLConnection.RequestMethod Property
Returns the request method which will be used to make the request to the remote HTTP server.

Syntax

[get: Android.Runtime.Register("getRequestMethod", "()Ljava/lang/String;", "GetGetRequestMethodHandler")]
[set: Android.Runtime.Register("setRequestMethod", "(Ljava/lang/String;)V", "GetSetRequestMethod_Ljava_lang_String_Handler")]
public virtual string RequestMethod { get; set; }

See Also

HttpURLConnection.Method
HttpURLConnection.RequestMethod
HttpURLConnection.RequestMethod
HttpURLConnection.Method

Value

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Net.ProtocolExceptionif this is called after connected, or the method is not supported by this HTTP implementation.
Java.Net.ProtocolExceptionif this is called after connected, or the method is not supported by this HTTP implementation.
Java.Net.ProtocolExceptionif this is called after connected, or the method is not supported by this HTTP implementation.
Java.Net.ProtocolExceptionif this is called after connected, or the method is not supported by this HTTP implementation.
Java.Net.ProtocolExceptionif this is called after connected, or the method is not supported by this HTTP implementation.

Remarks

Get method documentation [Android Documentation]

Returns the request method which will be used to make the request to the remote HTTP server. All possible methods of this HTTP implementation is listed in the class definition.

Set method documentation [Android Documentation]

Sets the request command which will be sent to the remote HTTP server. This method can only be called before the connection is made.

Requirements

Namespace: Java.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1