<cUrl_Http>.Headers

<< Click to Display Table of Contents >>

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

<cUrl_Http>.Headers

 

Description

 

Read only property to retrieve request headers in structured form.

 

Syntax

 

exitCode = <cUrl_Http>.Headers

 

Returns

 

Allows you to reach .Add, .Count and .Get methods for request .Headers.

 

Remarks

 

If you need to manipulate response headers, please use .HttpHeaders instead.

 

Restrictions
 

See also

 

Examples

 

uses "curl", "console"

 

Dim httpRequest As New cUrl_Http("http://www.thinbasic.com")

 

httpRequest.Headers.Add("Accept-Language: en-US")

 

printl httpRequest.Headers.Count

printl httpRequest.Headers.Get(1)

 

httpRequest.Exec