These wget recipes show you how to add custom HTTP headers to your requests. To do that, use the --header command line argument.

Send a Custom Header

wget --header='X-Custom-Header: cats' https://example.com

This recipe uses the --header option to send a custom HTTP header. This is useful for API testing or bypassing access restrictions.

Created by Browserling

These wget recipes were written down by me and my team at Browserling. We use recipes like this every day to get things done and improve our product. Browserling itself is an online cross-browser testing service powered by alien technology. Check it out!

Secret message: If you love my wget recipe, then I love you, too! Use coupon code WGETLING to get a discount at my company.