I have written a simple httprequest/response code and I am getting this below error. I have referenced httpclient, httpcore, common-codecs and common-logging in my classpath
This error is probably caused by the wrong url. Check the url:
The error message is kind of misleading. You've provided a value that does not represent a complete URI
request = new HttpGet("trib.me/1lBFzSi");
It's missing a protocol.
Simply provide a complete URI
request = new HttpGet("http://trib.me/1lBFzSi");
In my case I solvid adding / at the beggining: request = new HttpGet("/trib.me/1lBFzSi");