title: Can't capture HAR Request and Response using BrowserMob-Proxy(PhantomJS)
body: <p>I am unable to capture request and response using browsermob(selenium+PhantomJS browser)</p>
  
  <p>please refer the sample code</p>
  
  <pre><code>server = new BrowserMobProxyServer();
  server.start(0);
  server.newHar("contracts"); 
  </code></pre>
  
  <p>Capabilities:</p>
  
  <pre><code>DesiredCapabilities capabilities = new DesiredCapabilities();
  capabilities.setJavascriptEnabled(true);  capabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
  capabilities.setCapability(PhantomJSDriverService.PHANTOMJS_CLI_ARGS,
       new String[] {"--web-security=false", "--ssl-protocol=any", 
                      "--ignore-ssl-errors=yes"});
  capabilities.setCapability("takeScreenshot", true);
  URL hubUrl = new URL("http://152.188.0.42:5555/wd/hub");
  server.enableHarCaptureTypes(CaptureType.REQUEST_CONTENT, CaptureType.RESPONSE_CONTENT);
  </code></pre>
  
  <p>launching the application:</p>
  
  <pre><code>driver = new RemoteWebDriver(hubUrl,capabilities);
  driver.get("http://www.google.com");
  </code></pre>
  
  <p>Creating the har file:</p>
  
  <pre><code>Har har = server.getHar();
  FileOutputStream fos = new FileOutputStream("runnowNew.har");
  har.writeTo(fos);
  </code></pre>
  
  <p>Har which is generated by using the above code:</p>
  
  <pre><code>{
    "log":
    {
       "version":"1.2",
       "creator":{"name":"BrowserMob Proxy","version":"2.1.2","comment":""},
       "pages":[{"id":"contracts","startedDateTime":"2016-10-05T12:56:33.460+05:30","title":"contracts","pageTimings":{"comment":""},"comment":""}],
       "entries":[],
       "comment":""
    }
  }
  </code></pre>