cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damon Horrell (JIRA)" <>
Subject [jira] [Commented] (CXF-6611) Unable to override Host in HTTP Header
Date Fri, 25 Sep 2015 04:53:04 GMT


Damon Horrell commented on CXF-6611:

I just worked it out.  You have to set a system property to allow the Host to be overwritten:

So this is not a CXF issue.

> Unable to override Host in HTTP Header
> --------------------------------------
>                 Key: CXF-6611
>                 URL:
>             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:
> 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

View raw message