axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayachandra Sekhara Rao Sunkara (JIRA)" <>
Subject [jira] Commented: (AXIS-2047) HttpSender does not support redefinition of http header "Host"
Date Mon, 01 Aug 2005 07:13:35 GMT
    [ ] 

Jayachandra Sekhara Rao Sunkara commented on AXIS-2047:

I think URL specified inside msgContext object for the property HTTPConstants.TRANS_URL should
supercede any other Host related properties registered inside the msgContexts properties bag.
This property too is one the user specifies through something like Call.setTargetEndpointAddress(URL)
and isn't anywhere added by Axis on it own. The reported problem can arise only when user
says he is using some TargetEndpointAddress and yet again goes to experiment with the HTTPConstants.REQUEST_HEADERS
trying to insert extraneous Host information. But the later is something that is very unreliable,
and hence should not supercede the way Axis identifies its Host.
I feel what Axis does is quite right and doesn't need patching in this regard. The REQUEST_HEADERS
is only taken into consideration for properties such as HEADER_CONNECTION, HEADER_EXPECT and
HEADER_TRANSFER_ENCODING *which* are otherwise can't be set with the projected client API
for Call. And hence it should not be used to set duplicate values for certain headers that
already are taken into account by Axis. Even if someone tries to do so, Axis' HTTPSender is
wise enough to ignore them.

Should the reporter not have any complaints about the explanation. This bug can be closed
as user error.

> HttpSender does not support redefinition of http header "Host"
> --------------------------------------------------------------
>          Key: AXIS-2047
>          URL:
>      Project: Apache Axis
>         Type: Bug
>   Components: Basic Architecture
>     Versions: 1.2
>  Environment:  Axis java, 1.1 and 1.2, unix/windows platforms
>     Reporter: Cyrille Le Clerc
>     Assignee: Jayachandra Sekhara Rao Sunkara
>     Priority: Minor
>  Attachments: AXIS-2047-2.patch, AXIS-2047.patch
> HttpSender does not support redefinition of http header "Host".
> If the developper defines "Host" header in,
then this header is declared twice in the Http request ; the developper defined value is the
second one and thus ignored by the target server.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message