cUrl_Http

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > CURL >

cUrl_Http

 

cUrl_Http

 

The cUrl_Http class allows performing HTTP requests and processing their response.

 

Example

 

uses "curl"

 

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

httpRequest.Method = "GET"                   ' Sets HTTP method to GET

httpRequest.OutputFileName = $CURL_DEFAULT   ' Indicates to derive local file name from remote file name - index.html

httpRequest.Exec                             ' Performs the request (downloads the file as index.html to current directory)