How to set the Host header in JAX-RS / Apache CXF
问题 I am trying to access a service over HTTPS but due to restrictive network settings I am trying to make the request through an ssh tunnel. I create the tunnel with a command like: ssh -L 9443:my-service.com:443 sdt-jump-server The service is only available via HTTPS, its hosted with a self-signed certificate, and it is behind a load-balancer that uses either the hostname or an explicit Host header to route incoming requests to the appropriate backend service. I am able to invoke the endpoint