cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-6611) Unable to override Host in HTTP Header
Date Thu, 11 Aug 2016 09:58:20 GMT

    [ https://issues.apache.org/jira/browse/CXF-6611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15416963#comment-15416963
] 

Sergey Beryozkin commented on CXF-6611:
---------------------------------------

Yes, you can use CXF Async HTTP Transport

http://cxf.apache.org/docs/asynchronous-client-http-transport.html

> Unable to override Host in HTTP Header
> --------------------------------------
>
>                 Key: CXF-6611
>                 URL: https://issues.apache.org/jira/browse/CXF-6611
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.7.7
>            Reporter: Damon Horrell
>
> Setting http-conf:client Host="xxx" doesn't work.
> According to the following link this should set the HTTP Host header:
> http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html#ClientHTTPTransport(includingSSLsupport)-Theclientelement
> I've stepped through the code in Headers.setFromClientPolicy and it is using this to
create the headers.  The outbound logging interceptor also shows this header set on the message.
> However when the request arrives at the server, the Host header is set to the actual
address not the value that I specified.  I have verified this with a servlet filter and also
with a debugging web proxy.
> So at some point after the logging, the Host header is being lost.  Other headers (also
set via http-conf:client) do get sent correctly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message