Android APIs
Added in API level 1
public interface

CoreProtocolPNames

org.apache.http.params.CoreProtocolPNames
Known Indirect Subclasses

This interface is deprecated.
Please use openConnection() instead. Please visit this webpage for further details.

Class Overview

Defines parameter names for protocol execution in HttpCore.

Summary

Constants
String HTTP_CONTENT_CHARSET Defines the charset to be used per default for encoding content body.
String HTTP_ELEMENT_CHARSET Defines the charset to be used for encoding HTTP protocol elements.
String ORIGIN_SERVER Defines the content of the Server header.
String PROTOCOL_VERSION Defines the protocol version used per default.
String STRICT_TRANSFER_ENCODING Defines whether responses with an invalid Transfer-Encoding header should be rejected.
String USER_AGENT Defines the content of the User-Agent header.
String USE_EXPECT_CONTINUE

Activates 'Expect: 100-continue' handshake for the entity enclosing methods.

String WAIT_FOR_CONTINUE

Defines the maximum period of time in milliseconds the client should spend waiting for a 100-continue response.

Constants

public static final String HTTP_CONTENT_CHARSET

Added in API level 1

Defines the charset to be used per default for encoding content body.

This parameter expects a value of type String.

Constant Value: "http.protocol.content-charset"

public static final String HTTP_ELEMENT_CHARSET

Added in API level 1

Defines the charset to be used for encoding HTTP protocol elements.

This parameter expects a value of type String.

Constant Value: "http.protocol.element-charset"

public static final String ORIGIN_SERVER

Added in API level 1

Defines the content of the Server header.

This parameter expects a value of type String.

Constant Value: "http.origin-server"

public static final String PROTOCOL_VERSION

Added in API level 1

Defines the protocol version used per default.

This parameter expects a value of type ProtocolVersion.

Constant Value: "http.protocol.version"

public static final String STRICT_TRANSFER_ENCODING

Added in API level 1

Defines whether responses with an invalid Transfer-Encoding header should be rejected.

This parameter expects a value of type Boolean.

Constant Value: "http.protocol.strict-transfer-encoding"

public static final String USER_AGENT

Added in API level 1

Defines the content of the User-Agent header.

This parameter expects a value of type String.

Constant Value: "http.useragent"

public static final String USE_EXPECT_CONTINUE

Added in API level 1

Activates 'Expect: 100-continue' handshake for the entity enclosing methods. The purpose of the 'Expect: 100-continue' handshake to allow a client that is sending a request message with a request body to determine if the origin server is willing to accept the request (based on the request headers) before the client sends the request body.

The use of the 'Expect: 100-continue' handshake can result in noticable peformance improvement for entity enclosing requests (such as POST and PUT) that require the target server's authentication.

'Expect: 100-continue' handshake should be used with caution, as it may cause problems with HTTP servers and proxies that do not support HTTP/1.1 protocol.

This parameter expects a value of type Boolean.

Constant Value: "http.protocol.expect-continue"

public static final String WAIT_FOR_CONTINUE

Added in API level 1

Defines the maximum period of time in milliseconds the client should spend waiting for a 100-continue response.

This parameter expects a value of type Integer.

Constant Value: "http.protocol.wait-for-continue"