<cUrl_Http>.Location

<< Click to Display Table of Contents >>

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

<cUrl_Http>.Location

 

Description

 

Get / Set option controlling behaviour related to Location: response header.

 

Syntax

 

' GET

locationFlag = <cUrl_Http>.Location

 

' SET

<cUrl_Http>.Location = locationFlag

 

Returns

 

Value of the .Include flag.

 

Parameters

 

Name

Type

Optional

Meaning

locationFlag

Boolean

Yes

Boolean flag to switch whether curl follows Location: response header

 

Remarks

 

Official documentation of the location flag: https://curl.se/docs/manpage.html#-L

 

Restrictions

 

See also

 

Examples

 

uses "curl"

 

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

 

httpRequest.Location = True  ' Instructs CURL to check if server response

                             ' contains Location: header and behave accordingly

 

httpRequest.Exec