Code example for BasicHeader

    /** HTTP header for url-encoded content type. */ 
    public static final Header URL_ENCODED = new BasicHeader("Content-type", 
        "application/x-www-form-urlencoded; charset=UTF-8"); 
    /** HTTP header for declaring allowed GZIP encoding. */ 
    public static final Header GZIP_ENCODING = new BasicHeader("Accept-Encoding", "gzip"); 
     * HTTP header faking Mozilla as the user agent. 
    public static final Header USER_AGENT_HEADER_MOZILLA = new BasicHeader("User-Agent", 
        "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011221"); 
    private HttpHeaders() 
Stop searching for code, let great code find you!  Add Codota to your java IDE