hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesus M. Salvo Jr." <jesus.sa...@migasia.com>
Subject Bug? HttpMethod.removeRequestHeader( "User-Agent" ) does not remove the header
Date Wed, 12 Mar 2003 00:03:19 GMT

When I call:

    HttpMethod.removeRequestHeader( "User-Agent" ) ;

... the header is not removed and the value is 
"Jakarta-Commons-HttpClient ..." based on the packet capture that I have 
done.
If I call:

    HttpMethod.setRequestHeader( "User-Agent", null ) ;

... the header is there without any value.
If I call:

    HttpMethod.setRequestHeader( "User-Agent", null ) ;
    HttpMethod.removeRequestHeader( "User-Agent" ) ;

... the User-Agent header is again not removed and the value is 
"Jakarta-Commons-Httpclient .. .blah"




Mime
View raw message