commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sale, Doug" <ds...@us.britannica.com>
Subject RE: HTTPClient - setting default request headers impl Q
Date Thu, 10 Jan 2002 21:28:29 GMT
+1

> -----Original Message-----
> From: Waldhoff, Rodney [mailto:rwaldhof@us.britannica.com]
> Sent: Thursday, January 10, 2002 7:29 AM
> To: 'commons-dev@jakarta.apache.org '
> Subject: RE: HTTPClient - setting default request headers impl Q
> 
> 
> HttpClient has two distinct methods--setRequestHeader and 
> addRequestHeader.
> 
> meth.setRequestHeader("User-Agent", "FOO");
> meth.setRequestHeader("User-Agent", "BAR");
> should yield "User-Agent: BAR"
> 
> meth.addRequestHeader("User-Agent", "FOO");
> meth.addRequestHeader("User-Agent", "BAR");
> should yield "User-Agent: FOO; BAR"
> 
> See
> http://jakarta.apache.org/commons/httpclient/api/org/apache/co
> mmons/httpclie
> nt/HttpMethod.html
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message