No port number in HOST header in outgoing request
-------------------------------------------------
Key: JBESB-2291
URL:
https://jira.jboss.org/jira/browse/JBESB-2291
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Rosetta
Affects Versions: 4.4
Reporter: Taro Yasuma
Assignee: Daniel Bevenius
Fix For: 4.4 CP2, 4.5
A outgoing request with using SOAPClient action results Host header without port number.
HOW TO REPRODUCE:
You can see this issue by running a simple example.
1. configure httpclient and httpclient.wire.content category as DEBUG in jboss-log4j.xml
to make output of HTTP headers:
For example)
<category name="org.apache.commons.httpclient">
<priority value="DEBUG"/>
</category>
<category name="httpclient.wire.content">
<priority value="DEBUG"/>
2. run samples/quickstarts/webservice_consumer1.
For example)
$ant deploy
$ant runtest
3. Find debug output of the Host header in the server log.
For example)
2009-01-19 13:28:40,191 DEBUG [org.apache.commons.httpclient.HttpConnection] Open
connection to 127.0.0.1:8080
2009-01-19 13:28:40,194 DEBUG [httpclient.wire.header] >> "GET
/Quickstart_webservice_consumer1/HelloWorldWS?wsdl HTTP/1.1[\r][\n]"
2009-01-19 13:28:40,259 DEBUG [httpclient.wire.header] >> "User-Agent: Jakarta
Commons-HttpClient/3.0.1[\r][\n]"
2009-01-19 13:28:40,259 DEBUG [httpclient.wire.header] >> "Host:
127.0.0.1[\r][\n]"
2009-01-19 13:28:40,259 DEBUG [httpclient.wire.header] >> "[\r][\n]"
(snip)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: