This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
Description
Read only property to retrieve request response headers.
Syntax
exitCode = <cUrl_Http>.HttpHeader
Returns
String, containing all the headers of the response, separated by new line.
Remarks
Value is filled by using the <cUrl_Http>.Exec.
If you need the headers already parsed to items, use <cUrl_Http>.HttpHeaders instead of <cUrl_Http>.HttpHeader.
Restrictions
Read only.
See also
Examples
uses "curl", "console"
Dim httpRequest As New cUrl_Http("https://www.thinbasic.com")
httpRequest.Exec
printl httpRequest.HttpHeader ' Will contain multiline string, with response headers, such as:
' Content-Length: 40416
' Content-Type: text/html
' Content-Location: http://www.thinbasic.com/Index.html
' Last-Modified: Mon, 06 Apr 2020 16:42:26 GMT
' Accept-Ranges: bytes
' ETag: "9c5cdc5a32cd61:9a9e"
' Server: Microsoft-IIS/6.0
' X-Powered-By-Plesk: PleskWin
' X-Powered-By: ASP.NET
' Date: Mon, 23 Nov 2020 20:24:38 GMT