Hello to all. People, tell me, please, Java library for sending / receiving requests via HTTP. Interested in an analogue of the type of the https://code.google.com/p/phpsvnclient/source/browse/branches/khartn/http.php class which can send requests in the form
Args: Array ( [Protocol] => http [HostName] => ihtika.googlecode.com [Headers] => Array ( [Host] => ihtika.googlecode.com [User-Agent] => phpsvnclient (http://phpsvnclient.googlecode.com/) [Authorization] => Basic Og== [Content-Type] => text/xml [Depth] => 1 [Content-Length] => 202 ) [HostPort] => 0 [RequestURI] => /svn/!svn/bc/158/trunk/src/com/google/code/ihtika/IhtikaClient/MainThread.java/ [RequestMethod] => REPORT [Body] => <?xml version="1.0" encoding="utf-8"?> <S:log-report xmlns:S="svn:"> <S:start-revision>0</S:start-revision><S:end-revision>100</S:end-revision><S:path></S:path><S:discover-changed-paths/></S:log-report> )
That is, with the ability to form headers, specify RequestMethod and add Request Body. I looked in the direction of http://hc.apache.org/httpclient-3.x/ , but did not see such an opportunity there ...