FileDocCategorySizeDatePackage
HttpPost.javaAPI DocAndroid 1.5 API2888Wed May 06 22:41:10 BST 2009org.apache.http.client.methods

HttpPost

public class HttpPost extends HttpEntityEnclosingRequestBase
HTTP POST method.

The HTTP POST method is defined in section 9.5 of RFC2616:

The POST method is used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line. POST is designed to allow a uniform method to cover the following functions:
  • Annotation of existing resources
  • Posting a message to a bulletin board, newsgroup, mailing list, or similar group of articles
  • Providing a block of data, such as the result of submitting a form, to a data-handling process
  • Extending a database through an append operation

version
$Revision: 664505 $
since
4.0

Fields Summary
public static final String
METHOD_NAME
Constructors Summary
public HttpPost()

    
      
        super();
    
public HttpPost(URI uri)

        super();
        setURI(uri);
    
public HttpPost(String uri)

throws
IllegalArgumentException if the uri is invalid.

        super();
        setURI(URI.create(uri));
    
Methods Summary
public java.lang.StringgetMethod()

        return METHOD_NAME;