You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by metatech <me...@gmail.com> on 2012/06/19 15:27:25 UTC
Re: Query - Setting a custom HTTP request header
Sergey Beryozkin-5 wrote
>
> OK, you could've used this code too:
>
>
Hi,
For convenience, here is the full code snippet :
Map<String, List<String>> headers = new HashMap<String,
List<String>>();
List<String> acceptedCharset = new LinkedList<String>();
acceptedCharset.add("UTF-8");
acceptedCharset.add("ISO-8859-1");
headers.put("Accept-Charset, acceptedCharset);
client.getRequestContext().put(org.apache.cxf.message.Message.PROTOCOL_HEADERS,
headers);
client.invoke(...)
Regards,
metatech
--
View this message in context: http://cxf.547215.n5.nabble.com/Query-Setting-a-custom-HTTP-request-header-tp3390851p5709996.html
Sent from the cxf-user mailing list archive at Nabble.com.