Httprequest using full uri for method post instead off url.path

aakil aomar1 at fnb.co.za
Wed Jun 16 11:08:03 EDT 2010


Using Jboss 5.1.0.GA with jbossws 3.2.2 which has netty 3.1.5.GA bundled with
it.

I am experiencing a problem with a webservice client where it is sending the
wrong post method to the server.

I have stepped into the Nettyclient class and it receives the URI as
http://host:port/path

in the invoke internal method it creates a new DefaultHttpRequest with this
URI as paramter. Also in the code it created an java.net.URL which has all
the values split correctly for example host, port and path. However these
values are not used, but rather the full incoming URI. So the outcome of
this is that the channel is created correctly with host:port. However the
post request is as follow:

POST http://host:port/path
and header with Host: host

instead of 

POST /path
and Header with Host: host:port

I cannot find any complaints about this but it does not look correct to me
and the webservice call fails.


-- 
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Httprequest-using-full-uri-for-method-post-instead-off-url-path-tp5186906p5186906.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list