|
20 | 20 | HttpClient Examples (Classic)
|
21 | 21 | =============================
|
22 | 22 |
|
23 |
| -- [Response handling](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientResponseProcessing.java) |
| 23 | +- [Response handling](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientResponseProcessing.java) |
24 | 24 |
|
25 | 25 | This example demonstrates how to process HTTP responses using a response handler. This is the recommended way of
|
26 | 26 | executing HTTP requests and processing HTTP responses. This approach enables the caller to concentrate on the process
|
27 | 27 | of digesting HTTP responses and to delegate the task of system resource deallocation to HttpClient. The use of an HTTP
|
28 | 28 | response handler guarantees that the underlying HTTP connection will be released back to the connection manager
|
29 | 29 | automatically in all cases.
|
30 | 30 |
|
31 |
| -- [Manual connection release](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientConnectionRelease.java) |
| 31 | +- [Manual connection release](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientConnectionRelease.java) |
32 | 32 |
|
33 | 33 | This example demonstrates how to ensure the release of the underlying HTTP connection back to the connection manager
|
34 | 34 | in case of a manual processing of HTTP responses.
|
35 | 35 |
|
36 |
| -- [HttpClient configuration](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientConfiguration.java) |
| 36 | +- [HttpClient configuration](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientConfiguration.java) |
37 | 37 |
|
38 | 38 | This example demonstrates how to customize and configure the most common aspects of HTTP request execution and
|
39 | 39 | connection management.
|
40 | 40 |
|
41 |
| -- [Request execution interceptors](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientInterceptors.java) |
| 41 | +- [Request execution interceptors](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientInterceptors.java) |
42 | 42 |
|
43 | 43 | This example demonstrates how to insert custom request interceptor and an execution interceptor to the request
|
44 | 44 | execution chain.
|
45 | 45 |
|
46 |
| -- [Abort method](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientAbortMethod.java) |
| 46 | +- [Abort method](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientAbortMethod.java) |
47 | 47 |
|
48 | 48 | This example demonstrates how to abort an HTTP request before its normal completion.
|
49 | 49 |
|
50 |
| -- [Client authentication](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientAuthentication.java) |
| 50 | +- [Client authentication](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientAuthentication.java) |
51 | 51 |
|
52 | 52 | This example uses HttpClient to execute an HTTP request against a target site that requires user authentication.
|
53 | 53 |
|
54 |
| -- [Request via a proxy](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientExecuteProxy.java) |
| 54 | +- [Request via a proxy](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientExecuteProxy.java) |
55 | 55 |
|
56 | 56 | This example demonstrates how to send an HTTP request via a proxy.
|
57 | 57 |
|
58 |
| -- [Proxy authentication](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientProxyAuthentication.java) |
| 58 | +- [Proxy authentication](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientProxyAuthentication.java) |
59 | 59 |
|
60 | 60 | A simple example showing execution of an HTTP request over a secure connection tunneled through an authenticating
|
61 | 61 | proxy.
|
62 | 62 |
|
63 |
| -- [Chunk encoded POST](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientChunkEncodedPost.java) |
| 63 | +- [Chunk encoded POST](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientChunkEncodedPost.java) |
64 | 64 |
|
65 | 65 | This example shows how to stream out a request entity using chunk encoding.
|
66 | 66 |
|
67 |
| -- [Custom execution context](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientCustomContext.java) |
| 67 | +- [Custom execution context](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientCustomContext.java) |
68 | 68 |
|
69 | 69 | This example demonstrates the use of a local HTTP context populated custom attributes.
|
70 | 70 |
|
71 |
| -- [Form based logon](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientFormLogin.java) |
| 71 | +- [Form based logon](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientFormLogin.java) |
72 | 72 |
|
73 | 73 | This example demonstrates how HttpClient can be used to perform form-based logon.
|
74 | 74 |
|
75 |
| -- [Threaded request execution](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientMultiThreadedExecution.java) |
| 75 | +- [Threaded request execution](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientMultiThreadedExecution.java) |
76 | 76 |
|
77 | 77 | An example that executes HTTP requests from multiple worker threads.
|
78 | 78 |
|
79 |
| -- [Custom SSL context](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientCustomSSL.java) |
| 79 | +- [Custom SSL context](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientCustomSSL.java) |
80 | 80 |
|
81 | 81 | This example demonstrates how to create secure connections with a custom SSL context.
|
82 | 82 |
|
83 |
| -- [Connection / TLS configuation per route / host](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientConnectionConfig.java) |
| 83 | +- [Connection / TLS configuation per route / host](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientConnectionConfig.java) |
84 | 84 |
|
85 | 85 | This example demonstrates how to use connection configuration on a per-route or a per-host basis.
|
86 | 86 |
|
87 |
| -- [Preemptive BASIC authentication](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientPreemptiveBasicAuthentication.java) |
| 87 | +- [Preemptive BASIC authentication](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientPreemptiveBasicAuthentication.java) |
88 | 88 |
|
89 | 89 | This example shows how HttpClient can be customized to authenticate preemptively using BASIC scheme. Generally,
|
90 | 90 | preemptive authentication can be considered less secure than a response to an authentication challenge and therefore
|
91 | 91 | discouraged.
|
92 | 92 |
|
93 |
| -- [Preemptive DIGEST authentication](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientPreemptiveDigestAuthentication.java) |
| 93 | +- [Preemptive DIGEST authentication](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientPreemptiveDigestAuthentication.java) |
94 | 94 |
|
95 | 95 | This example shows how HttpClient can be customized to authenticate preemptively using DIGEST scheme. Generally,
|
96 | 96 | preemptive authentication can be considered less secure than a response to an authentication challenge and therefore
|
97 | 97 | discouraged.
|
98 | 98 |
|
99 |
| -- [Proxy tunnel](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ProxyTunnelDemo.java) |
| 99 | +- [Proxy tunnel](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ProxyTunnelDemo.java) |
100 | 100 |
|
101 | 101 | This example shows how to use ProxyClient in order to establish a tunnel through an HTTP proxy for an arbitrary
|
102 | 102 | protocol.
|
103 | 103 |
|
104 |
| -- [Multipart encoded request entity](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientMultipartFormPost.java) |
| 104 | +- [Multipart encoded request entity](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientMultipartFormPost.java) |
105 | 105 |
|
106 | 106 | This example shows how to execute requests enclosing a multipart encoded entity.
|
107 | 107 |
|
108 |
| -- [Connection endpoint details](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientRemoteEndpointDetails.java) |
| 108 | +- [Connection endpoint details](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientRemoteEndpointDetails.java) |
109 | 109 |
|
110 | 110 | This example demonstrates how to get details of the underlying connection endpoint.
|
111 | 111 |
|
112 |
| -- [Virtual HTTPS / SNI](https://github.com/apache/httpcomponents-client/tree/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientSNI.java) |
| 112 | +- [Virtual HTTPS / SNI](https://github.com/apache/httpcomponents-client/tree/5.4.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientSNI.java) |
113 | 113 |
|
114 | 114 | This example demonstrates how to use SNI to send requests to a virtual HTTPS endpoint using the classic I/O.
|
0 commit comments