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 interface

ConnConnectionPNames

org.apache.http.conn.params.ConnConnectionPNames
Known Indirect Subclasses

Class Overview

Parameter names for connections in HttpConn.

Summary

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

Constants

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"