URLConnection.setDefaultRequestProperty

URLConnection.setDefaultRequestProperty

Class Overview | Class Members | This Package | All Packages

Syntax
public static void setDefaultRequestProperty( String key, String value )
Parameters
key
the keyword by which the request is known (e.g., "accept").
value
the value associated with the key.
Description
Sets the default value of a general request property. When a URLConnection is created, it is initialized with these properties.