<cUrl_Http>.HttpHeaders

<< Click to Display Table of Contents >>

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

<cUrl_Http>.HttpHeaders

 

Description

 

Read only property to retrieve request response headers in structured form.

 

Syntax

 

exitCode = <cUrl_Http>.HttpHeaders

 

Returns

 

Allows you to reach .Count, .Get methods for .HttpHeaders.

 

Remarks

 

Value is filled by using the <cUrl_Http>.Exec.

 

Restrictions
 

Read only.

 

See also

 

Examples

 

uses "curl", "console"

 

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

 

httpRequest.Exec

 

for as long = 1 to httpRequest.HttpHeaders.Count

  print "Header #" + i + httpRequest.HttpHeaders.Get(i)

next