Add or modify any HTTP header

You can update or add any HTTP header: User-Agent, Accept-Language, etc. Unlike the custom Referrer, Cookie and POST data, these headers are added or updated on all HTTP/HTTPS transactions, not just the first one.

Check out the API documentation for screenshot/create to see the full list of customization options.

wget "https://api.browshot.com/api/v1/simple?url=http://www.xhaus.com/headers&headers=User-Agent:%20Foobar%0d%0aX-Foo:%20bar&key=my_api_key" -O /tmp/headers.png
$browshot->create_screenshot(url => 'http://www.xhaus.com/headers', headers => "User-Agent: Foobar\nX-Foo: bar"); # Full API
$browshot->simple(url => 'http://www.xhaus.com/headers', headers => "User-Agent: Foobar\nX-Foo: bar"); # Simple API
$browshot->screenshot_create('http://www.xhaus.com/headers', array('headers' => "User-Agent: Foobar\nX-Foo: bar")); // Full API
$browshot->simple('http://www.xhaus.com/headers', array('headers' => "User-Agent: Foobar\nX-Foo: bar")); // Simple API

All versions of the Browshot libraries support the additional headers argument.

Try it for free

no credit card required