camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem jiang <willem.ji...@gmail.com>
Subject NettyHttpProducer Request URI
Date Thu, 07 Nov 2013 09:23:08 GMT
Hi team,

I just found NettyHttpProducer sets the Request URI with the absoluteURI like  

GET http://www.w3.org/pub/WWW/TheProject.html.

But I found HttpClient set the Request URI with absolutePath like
  
GET /pub/WWW/TheProject.html  
Host: www.w3.org

From the HTTP1.1 RFC[1], these two Request URI are all OK. But for my experience it could
be better if NettyHttpProducer can just set the Request URI with absolutePath.
In this way, the request can be proxied without changing anything. Such as I can use TCPMonitor
the check the request and response between the NettyHttpProducer and back end server without
changing anything.

Any thought?

[1]http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html
--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem






Mime
View raw message