You can take the AppGameKit example and use it with just 2 changes to the lines above.
Line 11 in the code is the SetHTTPHost. Simply set it to your root URL.
Line 23 is the rest of the URL, and this is placed in variable download$.
This is how the example code looks with the 2 changes:
// Call HTTP commands
// Introduced in build 107
// display a background
backdrop = CreateSprite ( LoadImage ( "background5.jpg" ) )
SetSpriteSize ( backdrop, 100, 100 )
// connect to server
g_Net_Connection = CreateHTTPConnection ( )
g_Net_Connected = SetHTTPHost ( g_Net_Connection, "www.bbc.co.uk", 0 )
// state machine
stage=1
// main loop
do
// main code
select stage
case 1 :
Print("Getting file from HTTP...")
download$ = "news/uk-politics-30808252"
GetHTTPFile ( g_Net_Connection, download$, "BBC News.html" )
stage=2
endcase
case 2 :
perc#=GetHTTPFileProgress ( g_Net_Connection ) : perc=perc#
Print ( "Waiting for download..."+str(perc) )
if ( perc# >= 100.0 )
stage=3
endif
endcase
case 3 :
Print ( "The file is in your write folder" )
endcase
endselect
// update the screen
Sync ( )
loop
// free usages
CloseHTTPConnection(g_Net_Connection)
DeleteHTTPConnection(g_Net_Connection)
Quidquid latine dictum sit, altum sonatur