hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <ossf...@dubioso.net>
Subject Re: How can I set the http request header in the GetMethod of http client
Date Fri, 10 Aug 2007 17:02:33 GMT
ying lcs wrote:
> How can I set the http request header in the GetMethod of http client?

What about GetMethod.setRequestHeader("name", "value")?
It's in the HttpMethod interface. There are also
addRequestHeader(...) methods for multi-valued headers.

cheers,
  Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message