ariya/phantomjs — pull request #12318 by papoms (2014-06-18 13:51:42+00:00)
Title: Also send WebPage::customHeaders within our request

Setting Custom Headers
It works great to the extent that it creates and sends the http request with your custom headers. It fails however to set the document.referrer (as an example) value as accessible by Javascript on the website.