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 transaction, not the just the first one.

Check out the API documentation for screenshot/create to see the full list of customization you can leverage with Browshot.

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
client.screenshot_create('http://www.xhaus.com/headers', { headers => "User-Agent: Foobar\nX-Foo: bar" }); # Full API
client.simple('https://browshot.com/login', { headers => "User-Agent: Foobar\nX-Foo: bar" }); # Simple API

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

Try it for free

close

sign up for free account

Already have an account?

no credit card required

About Us

Browshot is a web service to create real time web screenshots in a multitude of virtual devices, including mobile devices like the iPhone 3 & 4, iPad, Android Nexus, etc.

You can use the web dashboard, or our full-featured API.

  • Real time screenshots

  • 15+ mobile devices: iPhone, iPad, Android, etc.

  • 30+ desktop resolutions

  • Fast and reliable

  • Thumbnails of any size, any ratio

  • Full API, open-source libraries

Share