We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Welcome to the PHPBrowserMobProxy wiki!
I had a requirement to capture header content. With BMP 0.8-beta this is now possible.
To accomplish this, I altered your new_har function:
function new_har($label = '') { //$data = "initialPageRef=" . $label; //Beta 8 has the ability to capture content, so recode this part $data = $this->encode_array(array("initialPageRef" => $label, "captureContent" => "true","captureHeaders" => "true","captureBinaryContent" => "true")); $response = Requests::put("http://" . $this->browsermob_url . "/proxy/" . $this->port . "/har", array(), $data); return $response; }
Your code was useful, and saved me time, so I wanted to give back