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.
Syntax
bitsadmin /setcustomheaders <job> <header1> <header2> <...>
Parameters
| Parameter | Description |
|---|---|
| job | The job's display name or GUID. |
<header1> <header2> and so on |
The custom headers for the job. |
Examples
To add a custom HTTP header for the job named myDownloadJob:
bitsadmin /setcustomheaders myDownloadJob accept-encoding:deflate/gzip
Related links
Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
