Java.Net.URLConnection.GetHeaderField Method
Returns the value of the header field specified by key or null if there is no field with this name.

Syntax

[Android.Runtime.Register("getHeaderField", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetHeaderField_Ljava_lang_String_Handler")]
public virtual string GetHeaderField (string key)

Parameters

key
the name of the header field.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns the value of the header field specified by key or null if there is no field with this name. The base implementation of this method returns always null.

Some implementations (notably HttpURLConnection) include a mapping for the null key; in HTTP's case, this maps to the HTTP status line and is treated as being at position 0 when indexing into the header fields.

[Android Documentation]

Requirements

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