<cUrl_Http>.Headers.Add

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > CURL > cUrl_Http > <cUrl_Http> Request Properties > <cUrl_Http>.Headers >

<cUrl_Http>.Headers.Add

 

Description

 

Adds request header.

 

Syntax

 

<cUrl_Http>.Headers.Add(headerSpec)

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning

headerSpec

String

No

Header in format "HeaderName: HeaderValue".

 

For example: "Content-type: application/json"

 

Remarks

 

You can add multiple headers to your request.

 

Restrictions

 

See also

 

Examples

 

uses "curl"

 

Dim httpRequest As New cUrl_Http

 

httpRequest.Headers.Add("Content-type: application/json")