CmdID

CmdID / Commands / bitsadmin

bitsadmin setcustomheaders

Add a custom HTTP header to a GET request sent to an HTTP server. Windows commands reference

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0

Add a custom HTTP header to a GET request sent to an HTTP server. For more information about GET requests, see Method Definitions and Header Field Definitions.

bitsadmin /setcustomheaders <job> <header1> <header2> <...>

To add a custom HTTP header for the job named myDownloadJob

bitsadmin /setcustomheaders myDownloadJob accept-encoding:deflate/gzipIdentify
jobThe job's display name or GUID.
<header1> <header2> and so onThe custom headers for the job.