URLConnection.getHeaderField

URLConnection.getHeaderField

Class Overview | Class Members | This Package | All Packages

Syntax
public String getHeaderField( int n )
Parameters
n
an index.
Returns
the value of the nth header field.
Description
Returns the value for the nth header field. It returns null if there are fewer than n fields.

This method can be used in conjunction with the getHeaderFieldKey method to iterate through all the headers in the message.

See Also
getHeaderFieldKey