You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Damon Horrell (JIRA)" <ji...@apache.org> on 2015/09/25 06:45:04 UTC

[jira] [Commented] (CXF-6611) Unable to override Host in HTTP Header

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

Damon Horrell commented on CXF-6611:
------------------------------------

Note: I have tested this with localhost so the header is not being modified by something else along the way.

> 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)