(AGK version: 108.14)
Submitted: 2014-08-26 13:31:06
http = CreateHTTPConnection()
SetHTTPHost( http, "files.thegamecreators.com", 0 )

GetHTTPFile( http, "betafiles/Hands_On_AGK_Chapter_14_Text.pdf", "AGKFreeChapter.pdf" )
while GetHTTPFileComplete(http) = 0
    Print( "Downloading: " + str(GetHTTPFileProgress(http)) )
    Sync()
endwhile

CloseHTTPConnection(http)
DeleteHTTPConnection(http)

// main loop
do
    Print( "The file is in your write folder" )
    Sync()
loop
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.