<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > CURL > cUrl_Http > <cUrl_Http> Response Properties > <cUrl_Http>.HttpHeaders > <cUrl_Http>.HttpHeaders.Count |
Description
Retrieves number of headers in response.
Syntax
totalCountOfHeaders = <cUrl_Http>.HttpHeaders.Count
Returns
Total count of headers present in the request response.
Remarks
You need to perform <cUrl_Http>.Exec method first.
Restrictions
See also
Examples
uses "curl", "console"
Dim httpRequest As New cUrl_Http("https://www.thinbasic.com")
httpRequest.Exec
for i as long = 1 to httpRequest.HttpHeaders.Count
print "Header #" + i + httpRequest.HttpHeaders.Get(i)
next