Commit Graph

1643 Commits

Author SHA1 Message Date
Oleg Kalnichevski e8bc96c549 Request URI does not always get updated
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1347596 13f79535-47bb-0310-9956-ffa450edef68
2012-06-07 12:59:37 +00:00
Oleg Kalnichevski 36c40dab03 HTTPCLIENT-1199: DecompressingHttpClient strips content from entity enclosing requests
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1345658 13f79535-47bb-0310-9956-ffa450edef68
2012-06-03 11:45:41 +00:00
Jonathan Moore 4086d02fbc HTTPCLIENT-1198: Updated release notes for bugfix.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1345298 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 18:11:43 +00:00
Jonathan Moore 218823fa4e HTTPCLIENT-1198: HttpHost is not set in HttpContext in CachingHttpClient.
This patch (with tests) primarily just needs to figure out how to set
appropriate context variables in the event of a pure cache hit--in the
event of a cache miss or a cache validation, we actually make an origin
request, and the "backend" client sets these context variables.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1345297 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 18:09:49 +00:00
Jonathan Moore 2451e5dec7 HTTPCLIENT-1199: Added unit test to verify Oleg's recent fix.
We still do not properly handle the redirect case, however.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1345217 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 14:53:17 +00:00
Oleg Kalnichevski f785d0ed7a HTTPCLIENT-1199: fixed request wrapping in DecompressingHttpClient
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1345166 13f79535-47bb-0310-9956-ffa450edef68
2012-06-01 13:26:53 +00:00
Jonathan Moore 2514a05895 Compiler warning cleanup: unused imports and unneeded @SuppressWarnings.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1344851 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 18:25:49 +00:00
Jonathan Moore 59314afc7d Added XML Schema reference for site.xml files.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1344849 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 18:24:23 +00:00
Oleg Kalnichevski a64a3e252e HTTPCLIENT-1200: DecompressingHttpClient fails to generate correct HttpHost context attribute
Contributed by Guillaume Castagnino <casta+jira at xwing.info>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1344743 13f79535-47bb-0310-9956-ffa450edef68
2012-05-31 14:28:38 +00:00
Oleg Kalnichevski 5300548a56 HTTPCLIENT-1192: URIBuilder encodes query parameters twice
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1343355 13f79535-47bb-0310-9956-ffa450edef68
2012-05-28 18:29:50 +00:00
Oleg Kalnichevski 0da3e7251e HTTPCLIENT-1193: Fixed regression in the route tracking logic of the default connection manager causing cross-site redirect failures.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1342677 13f79535-47bb-0310-9956-ffa450edef68
2012-05-25 15:13:43 +00:00
Oleg Kalnichevski 570aa9fa37 Upgraded project version to 4.2.1-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1340700 13f79535-47bb-0310-9956-ffa450edef68
2012-05-20 12:51:21 +00:00
Oleg Kalnichevski 92ce24b478 Removed non-ascii characters from the release notes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1339142 13f79535-47bb-0310-9956-ffa450edef68
2012-05-16 12:42:40 +00:00
Oleg Kalnichevski 91250b2a89 Reverted change to the public const value
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1339141 13f79535-47bb-0310-9956-ffa450edef68
2012-05-16 12:41:45 +00:00
Oleg Kalnichevski ae4ebcc630 Added missing AL header
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1339140 13f79535-47bb-0310-9956-ffa450edef68
2012-05-16 12:41:02 +00:00
Oleg Kalnichevski 2e2f6c2e04 HTTPCLIENT-1191: PATCH HTTP method
Contributed by Alin Vasile <alinachegalati at yahoo dot com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1339134 13f79535-47bb-0310-9956-ffa450edef68
2012-05-16 12:21:24 +00:00
Oleg Kalnichevski 7d4aabd203 Updated project web site for HttpClient 4.2 release
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1337909 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 15:05:28 +00:00
Oleg Kalnichevski 3207392281 Updated release notes for HttpClient 4.2
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1337908 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 15:05:12 +00:00
Oleg Kalnichevski c850967c01 Javadoc fixes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1337904 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 14:57:27 +00:00
Oleg Kalnichevski 561a7d7405 Reverted to using basic connection manager per default
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1337903 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 14:57:07 +00:00
Oleg Kalnichevski 7a207ae475 Removed code deprecated in release 4.0
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1337893 13f79535-47bb-0310-9956-ffa450edef68
2012-05-13 14:11:39 +00:00
Oleg Kalnichevski 1b063abfa9 HTTPCLIENT-1187: If a revalidation response is deemed too old CachingHttpClient fails to consume its content resulting in a connection leak
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1335726 13f79535-47bb-0310-9956-ffa450edef68
2012-05-08 19:54:27 +00:00
Oleg Kalnichevski a8d2e5e5fa Added release version to deprecation annotations; removed references to deprecated methods / classes
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1335088 13f79535-47bb-0310-9956-ffa450edef68
2012-05-07 16:06:11 +00:00
Oleg Kalnichevski aa412a29b9 Deprecated DefaultResponseParser in favor of DefaultHttpResponseParser
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1334646 13f79535-47bb-0310-9956-ffa450edef68
2012-05-06 14:41:38 +00:00
Oleg Kalnichevski bfe3b7201f Added getters to URIBuilder
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1334634 13f79535-47bb-0310-9956-ffa450edef68
2012-05-06 14:17:01 +00:00
Oleg Kalnichevski 6920b38823 UrlEncodedFormEntity constructors added in 4.2 no longer throw UnsupportedEncodingException
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1334630 13f79535-47bb-0310-9956-ffa450edef68
2012-05-06 13:58:20 +00:00
Oleg Kalnichevski 93296a4779 Upgraded to HttpCore 4.2; Fixed compile errors caused by API breakage (HTTPCLIENT-1189)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1334436 13f79535-47bb-0310-9956-ffa450edef68
2012-05-05 15:53:45 +00:00
Oleg Kalnichevski 63d06f06cd HTTPCLIENT-1186: State of newly created connections in the connection pool is not always correctly updated potentially allowing those connections to be leased to users with a different security context
Contributed by Ralf Pöhlmann <rpn at methodpark.de>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1329811 13f79535-47bb-0310-9956-ffa450edef68
2012-04-24 15:55:07 +00:00
Oleg Kalnichevski 9366926296 Renamed CompressionDecorator to DecompressingHttpClient
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1311967 13f79535-47bb-0310-9956-ffa450edef68
2012-04-10 20:19:20 +00:00
Oleg Kalnichevski 26241e51e2 HTTPCLIENT-1180: Fixed NPE in ClientGZipContentCompression sample
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1311952 13f79535-47bb-0310-9956-ffa450edef68
2012-04-10 19:36:49 +00:00
Oleg Kalnichevski a9c95e057f HTTPCLIENT-1182: constructor to org.apache.http.conn.ssl.SSLSocketFactory to allow for directly wrapping a javax.net.ssl.SSLSocketFactory socketfactory
Contributed by Mark Claassen <mclaassen at ocie.net>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1311941 13f79535-47bb-0310-9956-ffa450edef68
2012-04-10 19:22:40 +00:00
Oleg Kalnichevski db9f011a83 SSLSocketFactory to use javax.net.ssl.SSLSocketFactory#createSocket() instead of new Socket()
Contributed by Mark Claassen <mac01at donnell.com>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1311409 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 20:10:18 +00:00
Oleg Kalnichevski 0fb328d01c HTTPCLIENT-1179: Upgraded Commons Codec dependency to version 1.6
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1311383 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 19:27:03 +00:00
Oleg Kalnichevski be6347aef0 HTTPCLIENT-1177: always remove fragments from request URIs
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1311382 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 19:18:35 +00:00
Oleg Kalnichevski 0cea739a38 Removed references to deprecated API
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1311381 13f79535-47bb-0310-9956-ffa450edef68
2012-04-09 19:17:51 +00:00
Oleg Kalnichevski d544026bee BasicManagedEntity#streamClosed no longer propagates SocketException if the underlying connection has been shut down
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1307766 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 11:16:45 +00:00
Oleg Kalnichevski 218edab9fd Un-deprecated #parse method that takes Scanner as a parameter
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1302482 13f79535-47bb-0310-9956-ffa450edef68
2012-03-19 14:47:44 +00:00
Oleg Kalnichevski 5e0e2efe13 Optimized URLEncodedUtils#parse(HttpEntity) method
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1302360 13f79535-47bb-0310-9956-ffa450edef68
2012-03-19 10:33:16 +00:00
Jonathan Moore 3f99045e4f HTTPCLIENT-1164: If we uncompress an entity on-the-fly, we should
also remove its Content-MD5 header, as it will likely no longer be
accurate, and an upstream consumer may incorrectly reject the
response on that basis. This way the decorator preserves semantic
transparency.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1301572 13f79535-47bb-0310-9956-ffa450edef68
2012-03-16 15:01:27 +00:00
Jonathan Moore 54c7e992fb HTTPCLIENT-1164: Implemented a new CompressionDecorator aimed at replacing
the ContentEncodingHttpClient. This reuses the same request/response
interceptors with some minor additions to make the resulting response
semantically consistent (i.e. if a response is uncompressed, we mark the
entity as having an unknown length and remove the Content-Length header
before passing the response upstream). This allows the CompressionDecorator
and CachingHttpClient to be wired around a DefaultHttpClient in either order
and still get cache hits, depending on whether you want to cache compressed
or uncompressed bodies.

Minor change to ResponseContentEncoding to set a context variable that the
uncompression was applied. Only other change was to deprecate the
ContentEncodingHttpClient.


git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1301090 13f79535-47bb-0310-9956-ffa450edef68
2012-03-15 17:02:07 +00:00
Oleg Kalnichevski cef44fa283 Better SSL initialization for fluent Executor
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1299041 13f79535-47bb-0310-9956-ffa450edef68
2012-03-09 20:42:32 +00:00
Oleg Kalnichevski a5ba13fbd7 HTTPCLIENT-1168: updated tutorial to describe recommended application of HttpContext in multi-threaded execution
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1296623 13f79535-47bb-0310-9956-ffa450edef68
2012-03-03 13:32:12 +00:00
Oleg Kalnichevski a32899e446 ClientPNames.VIRTUAL_HOST has no effect if set at the client level
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1296612 13f79535-47bb-0310-9956-ffa450edef68
2012-03-03 12:28:59 +00:00
Oleg Kalnichevski b90f31138c Fixed broken test case
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1294612 13f79535-47bb-0310-9956-ffa450edef68
2012-02-28 12:16:20 +00:00
Oleg Kalnichevski 3d2b0023fe It is legal for AuthScheme to be null
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1294348 13f79535-47bb-0310-9956-ffa450edef68
2012-02-27 21:44:50 +00:00
Oleg Kalnichevski 647e4dc314 HTTPCLIENT-1166: more tolerant parsing logic for malformed uris with invalid authority part
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1244105 13f79535-47bb-0310-9956-ffa450edef68
2012-02-14 16:12:02 +00:00
Oleg Kalnichevski d87d45a618 HTTPCLIENT-1166: added more tests for URIUtils#extractHost
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1243989 13f79535-47bb-0310-9956-ffa450edef68
2012-02-14 15:24:18 +00:00
Oleg Kalnichevski fdeb405065 Added option to create fluent Executor on top of an arbitrary HttpClient instance
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1243662 13f79535-47bb-0310-9956-ffa450edef68
2012-02-13 19:20:26 +00:00
Oleg Kalnichevski eac4ae43a7 Fixed problem with the system SSL context initialization (seems to affect Windows only)
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1243661 13f79535-47bb-0310-9956-ffa450edef68
2012-02-13 19:19:35 +00:00
Oleg Kalnichevski d969fe8774 HTTPCLIENT-1162: do not override 'Accept-Encoding' header if already present
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1242782 13f79535-47bb-0310-9956-ffa450edef68
2012-02-10 14:14:30 +00:00