Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

UrlEncodedFormEntity

extends StringEntity
java.lang.Object
   ↳ org.apache.http.entity.AbstractHttpEntity
     ↳ org.apache.http.entity.StringEntity
       ↳ org.apache.http.client.entity.UrlEncodedFormEntity

Class Overview

An entity composed of a list of url-encoded pairs. This is typically useful while sending an HTTP POST request.

Summary

[Expand]
Inherited Fields
From class org.apache.http.entity.StringEntity
From class org.apache.http.entity.AbstractHttpEntity
Public Constructors
, java.lang.String)">UrlEncodedFormEntity ( List <? extends  NameValuePair > parameters, String encoding)
Constructs a new UrlEncodedFormEntity with the list of parameters in the specified encoding.
)">UrlEncodedFormEntity ( List <? extends  NameValuePair > parameters)
Constructs a new UrlEncodedFormEntity with the list of parameters with the default encoding of DEFAULT_CONTENT_CHARSET
[Expand]
Inherited Methods
From class org.apache.http.entity.StringEntity
From class org.apache.http.entity.AbstractHttpEntity
From class java.lang.Object
From interface org.apache.http.HttpEntity

Public Constructors

, java.lang.String)">

public UrlEncodedFormEntity ( List <? extends  NameValuePair > parameters, String encoding)

Added in API level 1

Constructs a new UrlEncodedFormEntity with the list of parameters in the specified encoding.

Parameters
parameters list of name/value pairs
encoding encoding the name/value pairs be encoded with
Throws
UnsupportedEncodingException if the encoding isn't supported
)">

public UrlEncodedFormEntity ( List <? extends  NameValuePair > parameters)

Added in API level 1

Constructs a new UrlEncodedFormEntity with the list of parameters with the default encoding of DEFAULT_CONTENT_CHARSET

Parameters
parameters list of name/value pairs
Throws
UnsupportedEncodingException if the default encoding isn't supported