(AGK version: 108.14)
Submitted: 2014-08-26 13:30:16
http = CreateHTTPConnection()
 SetHTTPHost( http, "www.appgamekit.com", 0 )
 
 SendHTTPRequestASync( http, "agktest/itworks.html" )
 while GetHTTPResponseReady(http) = 0
     Print( "Connecting..." )
     Sync()
 endwhile
 
 response$ = GetHTTPResponse(http)
 
 CloseHTTPConnection(http)
 DeleteHTTPConnection(http)
 
 // main loop
 do
     Print( "Server response: " + response$ )
     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.