Camel-netty-http producer always uses absolute URI when creating HTTP POST request
Issue
The HTTP POST request sent from camel-netty-http producer endpoint always has an absolute uri:
POST http://10.36.4.161:80/ServicePort HTTP/1.1
breadcrumbId: ID-jluomac-59121-1439495424551-2-1
firedTime: Thu Aug 13 21:10:22 IST 2015
Content-Length: 15
Host: localhost
Connection: keep-alive
It causes problem with some third party backend systems such as IBM Datapower since they are not capable of dealing absolute uri but instead they are expecting partial uri (or relative uri) like:
POST /ServicePort HTTP/1.1
breadcrumbId: ID-jluomac-59121-1439495424551-2-1
firedTime: Thu Aug 13 21:10:22 IST 2015
Content-Length: 15
Host: 10.36.4.161
Connection: keep-alive
The reason is that org.apache.camel.component.netty.http.NettyHttpHelper.java class createURL() function takes endpoint URI directly and uses it as HTTP POST request URI.
Environment
- JBoss Fuse
- 6.1
- 6.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
