Cmdlets for JSON

Build 25.0.9434

CustomHeaders Parameter (Connect-JSON Cmdlet)

Specifies additional HTTP headers to append to the request headers created from other properties, such as ContentType and From. Use this property to customize requests for specialized or nonstandard APIs.

Syntax

Connect-JSON -CustomHeaders string

Data Type

cstr

Default Value

""

Remarks

Use this property to add custom headers to HTTP requests sent by the cmdlet.

This property is useful when fine-tuning requests to interact with APIs that require additional or nonstandard headers. Headers must follow the format "header: value" as described in the HTTP specifications and each header line must be separated by the carriage return and line feed (CRLF) characters. Important: Use caution when setting this property. Supplying invalid headers may cause HTTP requests to fail.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434