tags:

views:

35

answers:

1

which java http client library is easy to use for programmatically doing posts, setting cookies and maybe ajax?

+2  A: 

Apache HTTP Component (HttpClient 4.0),

http://hc.apache.org/httpcomponents-client-4.0.1/index.html

Normally, I would just use HttpURLConnection but its cookie handling is too weak to simulate browser behavior.

ZZ Coder
Looks like the URL has changed. Try http://hc.apache.org/httpcomponents-client-ga/index.html
Adrian Mouat