I'm looking to use PhantomJS, via WebDriver/RemoteWebDriver, to monitor and test network activity throughout page loading. I've gotten it to the point where PhantomJS can do everything that Chrome or Firefox can—is loading pages, accessing the DOM, etc.
However, I'm not sure where to go from here in order to be able to access request and response HTTP headers the way I've seen in JavaScript PhantomJS examples. The GhostDriver Javadocs don't seem to mention anything about it.
Has anyone done this?