Android.Net.Http.AndroidHttpClient Class
Implementation of the Apache NoType:org/apache/http/impl/client/DefaultHttpClient;Href=../../../../reference/org/apache/http/impl/client/DefaultHttpClient.html that is configured with reasonable default settings and registered schemes for Android.

See Also: AndroidHttpClient Members

Syntax

[Android.Runtime.Register("android/net/http/AndroidHttpClient", DoNotGenerateAcw=true)]
public sealed class AndroidHttpClient : Java.Lang.Object, Org.Apache.Http.Client.IHttpClient, IDisposable

Remarks

Implementation of the Apache NoType:org/apache/http/impl/client/DefaultHttpClient;Href=../../../../reference/org/apache/http/impl/client/DefaultHttpClient.html that is configured with reasonable default settings and registered schemes for Android. Don't create this directly, use the AndroidHttpClient.NewInstance(string) factory method.

java Example

context.setAttribute(ClientContext.COOKIE_STORE, cookieStore);

This client processes cookies but does not retain them by default. To retain cookies, simply add a cookie store to the HttpContext:

[Android Documentation]

Requirements

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