public static void main(String[] args) throws Exception { URIFactory uriFactory = new URIFactory(); uriFactory.setAllowIllegalCharacters(true); Response res = new HttpClient().call(new Request.Builder().get(uriFactory, "http://localhost:2000/a.{/").buildExchange()).getResponse(); System.out.println(res.getStatusCode()); System.out.println(res.getStartLine()); } }