ok2c commented on PR #421:
URL: 
https://github.com/apache/httpcomponents-core/pull/421#issuecomment-1693731633

   @bpitman In your particular case you do not even need any custom code. All 
you need to do is to set up the connection route correctly.
   ```
   final HttpHost target = new HttpHost("https", 
InetAddress.getByName("192.168.30.10"), "upload-test.domain.com", 433);
   final HttpClientContext clientContext = HttpClientContext.create();
   
   final SimpleHttpRequest request = SimpleRequestBuilder.get()
           .setPath("/")
           .build();
   
   System.out.println("Executing request " + request);
   final Future<SimpleHttpResponse> future = client.execute(
           target,
           SimpleRequestProducer.create(request),
           SimpleResponseConsumer.create(),
           null,
           clientContext,
           new FutureCallback<SimpleHttpResponse>() {
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to