Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.13 KB

bitsadmin-setcustomheaders.md

File metadata and controls

41 lines (29 loc) · 1.13 KB
title description ms.topic ms.assetid ms.author author manager ms.date
bitsadmin setcustomheaders
Reference article for the bitsadmin setcustomheaders command, which adds a custom HTTP header to a GET request.
reference
ed926410-80d0-46ed-9a90-f752c164bb9a
jgerend
JasonGerend
mtillman
10/16/2017

bitsadmin setcustomheaders

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