{"action":"closed","issue":{"url":"https://api.github.com/repos/square/okhttp/issues/3021","repository_url":"https://api.github.com/repos/square/okhttp","labels_url":"https://api.github.com/repos/square/okhttp/issues/3021/labels{/name}","comments_url":"https://api.github.com/repos/square/okhttp/issues/3021/comments","events_url":"https://api.github.com/repos/square/okhttp/issues/3021/events","html_url":"https://github.com/square/okhttp/issues/3021","id":193269396,"number":3021,"title":"IP request with https","user":{"login":"leelit","id":10249449,"avatar_url":"https://avatars.githubusercontent.com/u/10249449?v=3","gravatar_id":"","url":"https://api.github.com/users/leelit","html_url":"https://github.com/leelit","followers_url":"https://api.github.com/users/leelit/followers","following_url":"https://api.github.com/users/leelit/following{/other_user}","gists_url":"https://api.github.com/users/leelit/gists{/gist_id}","starred_url":"https://api.github.com/users/leelit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leelit/subscriptions","organizations_url":"https://api.github.com/users/leelit/orgs","repos_url":"https://api.github.com/users/leelit/repos","events_url":"https://api.github.com/users/leelit/events{/privacy}","received_events_url":"https://api.github.com/users/leelit/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-03T06:18:50Z","updated_at":"2016-12-08T03:14:39Z","closed_at":"2016-12-08T03:14:39Z","body":"if i run the example, it works.\r\n```\r\npublic class GetExample {\r\n  OkHttpClient client = new OkHttpClient();\r\n\r\n  String run(String url) throws IOException {\r\n    Request request = new Request.Builder()\r\n        .url(url)\r\n        .build();\r\n\r\n    try (Response response = client.newCall(request).execute()) {\r\n      return response.body().string();\r\n    }\r\n  }\r\n\r\n  public static void main(String[] args) throws IOException {\r\n    GetExample example = new GetExample();\r\n    String response = example.run(\"https://github.com/square/okhttp\");\r\n    System.out.println(response);\r\n  }\r\n}\r\n```\r\n\r\nhowever, if i replace the domain to IP address, problem occurs. \r\n`String response = example.run(\"https://192.30.253.112:443/square/okhttp\");`\r\n\r\nI suffered the same problem with HttpUrlConnection whose bottom implement is OkHttp.\r\n\r\n[https://stackoverflow.com/questions/40926773/httpsurlconnection-with-ip-issue](url)\r\n\r\n"}}
{"actor":{"display_login":"JakeWharton"}}