<< Click to Display Table of Contents >>
Navigation: ThinBASIC Modules > CURL >
The cUrl_Http class allows performing HTTP requests and processing their response.
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)