Search code examples
javaseleniumbrowsermob

Capture post request payload from web browser network traffic using automation


I am not able to capture POST request payload which is sent by chrome browser for forms.

I have tried Browser mob proxy but it only captures in har file the request url, response code but not request payload.

I want to validate the request payload via java or selenium or any automation script and not via manual verification.

Any suggestion will be helpful.


Solution

  • As browser mob only captures request url and response status but not payload data. I stopped using browsermob.

    I used Fiddler instead which worked perfectly for me. The only problem was unlike browser mob I had to install Fiddler application in my system for which I had to approached to my superiors for permissions for fiddler installation.