<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > CURL > cUrl_Http > <cUrl_Http> Request Properties > <cUrl_Http>.Headers > <cUrl_Http>.Headers.Get |
Description
Retrieves given request header.
Syntax
headerValue = <cUrl_Http>.Headers.Get(headerIndex)
Returns
Header value in form of string.
Parameters
Name |
Type |
Optional |
Meaning |
headerIndex |
Integer |
No |
One based index.
|
Remarks
Headers need to be added first via .Add, to be able to retrieve them back via .Get.
Restrictions
See also
Examples
uses "curl", "console"
Dim httpRequest As New cUrl_Http
httpRequest.Headers.Add("Content-type: application/json")
printl httpRequest.Headers.Get(1) ' Will return "Content-type: application/json"