Hi Guys,
I am using the Jersey client library to test some web services and I
need to set the 'Host' header to trigger different behavior (the web
service configuration is host driven, sort of what VirtualHost
directive does for Apache) in the server. I tried both the
HttpURIConnection and Apache based implementations, both without luck.
I know that for the HttpUriConnection-based one I need to pass
'sun.net.http.allowRestrictedHeaders' to the JVM, but doing so doesn't
help a bit. The custom 'Host' header is always ignored and never
present in the actual request. What can I do?
--
Cheers,
Jakub