Skip to content

Most visited

Recently visited


ConnConnectionPNames | Android Developers

to top
Android APIs
Added in API level 1
public interface


Known Indirect Subclasses

Class Overview

Parameter names for connections in HttpConn.


String MAX_STATUS_LINE_GARBAGE Defines the maximum number of ignorable lines before we expect a HTTP response's status line.


public static final String MAX_STATUS_LINE_GARBAGE

Added in API level 1

Defines the maximum number of ignorable lines before we expect a HTTP response's status line.

With HTTP/1.1 persistent connections, the problem arises that broken scripts could return a wrong Content-Length (there are more bytes sent than specified). Unfortunately, in some cases, this cannot be detected after the bad response, but only before the next one. So HttpClient must be able to skip those surplus lines this way.

This parameter expects a value of type Integer. 0 disallows all garbage/empty lines before the status line. Use MAX_VALUE for unlimited (default in lenient mode).

Constant Value: "http.connection.max-status-line-garbage"
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.