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





Reply via email to