hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julien Vermillard <jvermill...@gmail.com>
Subject setting headers for a async request
Date Fri, 29 Jul 2011 08:54:33 GMT
Hi !
I'm using the async http client for post & get methods, it's working
fine until now.

here my code :

<code>
clientMethod = new HttpAsyncPost(targetUrl, content, request.getContentType());

httpclient.execute(clientMethod, new MyResponseConsumer(continuation),
new FutureCallback<Boolean>() {
...
</code>

I would like to add header value in my requests, but I'm unable to
find the way to do it in the API.
Where I'm supposed to add my headers ?

Julien

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


Mime
View raw message