{"action":"created","issue":{"url":"https://api.github.com/repos/lightbody/browsermob-proxy/issues/495","repository_url":"https://api.github.com/repos/lightbody/browsermob-proxy","labels_url":"https://api.github.com/repos/lightbody/browsermob-proxy/issues/495/labels{/name}","comments_url":"https://api.github.com/repos/lightbody/browsermob-proxy/issues/495/comments","events_url":"https://api.github.com/repos/lightbody/browsermob-proxy/issues/495/events","html_url":"https://github.com/lightbody/browsermob-proxy/issues/495","id":164652794,"number":495,"title":"Using HostNameResolver for https requests","user":{"login":"SupersonicShiran","id":14371374,"avatar_url":"https://avatars.githubusercontent.com/u/14371374?v=3","gravatar_id":"","url":"https://api.github.com/users/SupersonicShiran","html_url":"https://github.com/SupersonicShiran","followers_url":"https://api.github.com/users/SupersonicShiran/followers","following_url":"https://api.github.com/users/SupersonicShiran/following{/other_user}","gists_url":"https://api.github.com/users/SupersonicShiran/gists{/gist_id}","starred_url":"https://api.github.com/users/SupersonicShiran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SupersonicShiran/subscriptions","organizations_url":"https://api.github.com/users/SupersonicShiran/orgs","repos_url":"https://api.github.com/users/SupersonicShiran/repos","events_url":"https://api.github.com/users/SupersonicShiran/events{/privacy}","received_events_url":"https://api.github.com/users/SupersonicShiran/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-09T06:22:02Z","updated_at":"2016-11-23T13:22:41Z","closed_at":"2016-07-19T14:55:48Z","body":"Hey,\n\nI'm trying to make this remap:\nhttps://init.mycompany.com --> https://platform-sandbox.mycompany.com\n\nI've configured the proxy and the host resolver this way:\n\n```\n    net.lightbody.bmp.BrowserMobProxyServer mProxyServer;\n    AdvancedHostResolver advancedHostResolver;\n\n    mProxyServer = new BrowserMobProxyServer();\n\n    mProxyServer.setHarCaptureTypes(REQUEST_HEADERS,\n            REQUEST_COOKIES,\n            REQUEST_CONTENT,\n            REQUEST_BINARY_CONTENT,\n            RESPONSE_HEADERS,\n            RESPONSE_COOKIES,\n            RESPONSE_CONTENT,\n            RESPONSE_BINARY_CONTENT);\n\n    mProxyServer.setTrustAllServers(true);\n    advancedHostResolver = mProxyServer.getHostNameResolver();\n    advancedHostResolver.remapHost(\"init.mycompany.com\", \"platform-sandbox.mycompany.com\");\n    mProxyServer.setHostNameResolver(advancedHostResolver);\n    mProxyServer.start(8888);\n```\n\nYet when I'm making a request to init.mycompany.com I see that the request is not remapped to the host platform-sandbox.mycompany.com. \nDid I missed anything?\n\nThanks!\n"},"comment":{"url":"https://api.github.com/repos/lightbody/browsermob-proxy/issues/comments/262511129","html_url":"https://github.com/lightbody/browsermob-proxy/issues/495#issuecomment-262511129","issue_url":"https://api.github.com/repos/lightbody/browsermob-proxy/issues/495","id":262511129,"user":{"login":"vijaygoturi","id":12048045,"avatar_url":"https://avatars.githubusercontent.com/u/12048045?v=3","gravatar_id":"","url":"https://api.github.com/users/vijaygoturi","html_url":"https://github.com/vijaygoturi","followers_url":"https://api.github.com/users/vijaygoturi/followers","following_url":"https://api.github.com/users/vijaygoturi/following{/other_user}","gists_url":"https://api.github.com/users/vijaygoturi/gists{/gist_id}","starred_url":"https://api.github.com/users/vijaygoturi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vijaygoturi/subscriptions","organizations_url":"https://api.github.com/users/vijaygoturi/orgs","repos_url":"https://api.github.com/users/vijaygoturi/repos","events_url":"https://api.github.com/users/vijaygoturi/events{/privacy}","received_events_url":"https://api.github.com/users/vijaygoturi/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T13:22:41Z","updated_at":"2016-11-23T13:22:41Z","body":"Hi Jekh,\r\n\r\nI am facing the issue with the HTTPS domains being remapped. Its not loading the required certificate from the server and is throwing \"The request could not be satisfied.\""}}
{"actor":{"display_login":"vijaygoturi"}}