views:

64

answers:

0

Hi,

why if i create a HtppHost object with:

HttpHost host = new HttpHost("myservice/frontend_dev.php/api/, -1, HttpHost.DEFAULT_SCHEME_NAME);

i obtain the following exception:

java.net.UnknownHostException: Host is unresolved: myservice/frontend_dev.php/api/:80

I don't want the object include the :80 port in the request url

Thanks