You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Jayachandra Sekhara Rao Sunkara (JIRA)" <ax...@ws.apache.org> on 2005/08/01 09:13:35 UTC

[jira] Commented: (AXIS-2047) HttpSender does not support redefinition of http header "Host"

    [ http://issues.apache.org/jira/browse/AXIS-2047?page=comments#action_12317294 ] 

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: http://issues.apache.org/jira/browse/AXIS-2047
>      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 msgContext.property(HTTPConstants.REQUEST_HEADERS), 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira