Faking the Referer Header in PhantomJS

When loading a web page with PhantomJS is it possible to fake the referrer by setting the page.customHeaders property to include “Referer”. However, this will be sent to all page objects (images, CSS etc…), which is not the desired result. The workaround in the PhantomJS API documentation is incorrect. Read on to find out how …

Continue reading ‘Faking the Referer Header in PhantomJS’ »