commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Waldhoff, Rodney" <rwald...@us.britannica.com>
Subject RE: HTTPClient - setting default request headers impl Q
Date Thu, 10 Jan 2002 13:29:01 GMT
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/commons/httpclie
nt/HttpMethod.html

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