No Request Parameters and Response value in Har file
All I receive is har file with all requests & responses with their corresponding headers but not the Posted parameters and the response value.
Expected: should receive the Parameters passed in request and the response received too, there is har view for 1 of my request:

I'm using it with selenium, after I reach at the exact page, I store Har like this: Here is my tried code:
Har har = proxyServer.getHar();
FileOutputStream fos = new FileOutputStream(filePath);
har.writeTo(fos);
Is there any variation required to capture the posted payload too?
You need to mention what the proxy server (BrowserMobProxy) needs to/have to capture. Please try with this: (for example)
BrowserMobProxy proxy = new BrowserMobProxyServer();
proxy.start ( 0);
HashSet<CaptureType> enable = new HashSet<CaptureType>();
enable.add(CaptureType.REQUEST_HEADERS);
enable.add(CaptureType.REQUEST_CONTENT);
enable.add(CaptureType.RESPONSE_HEADERS);
proxy.enableHarCaptureTypes(enable);
enable.add(CaptureType.REQUEST_CONTENT);
enable.add(CaptureType.RESPONSE_CONTENT);
These two would capture the payload.
@abhishekswain : yes it helped, thanks. However the file becomes too huge to open and watch (taking 20-30 minutes), i'm sure there should be a way where I can specifically filter & write only specific calls on file in code, any link to such functions or classes? any way I can filter by request url and write those to the file would do the trick because any way I want to see only few requests I see - https://github.com/lightbody/browsermob-proxy#http-request-manipulation, will this help for above purpose ?
closing as it works with suggested solution, @jekh : please let me know if I can raise PR to document it, it can save a lot of time for new folks