Run this AppGameKit code that points to my server. It will run the PHP code above and return a simple string of data.
The string is meaningless outside of the context of my game, but you can see that you can return anything at all.
setwindowsize(1024,768,0)
SetVirtualResolution(1024,768)
http = CreateHTTPConnection()
SetHTTPHost( http, "www.devink.co.uk", 0 )
SendHTTPRequestASync( http, "hiscores/scoredown.php" )
while GetHTTPResponseReady(http) = 0
Print( "Connecting..." )
Sync()
endwhile
response$ = GetHTTPResponse(http)
CloseHTTPConnection(http)
DeleteHTTPConnection(http)
// main loop
do
Print( "Server response: ")
for n = 1 to len(response$) step 10
print(mid(response$,n,10))
next n
Sync()
loop
If you want to see what it returns in a browser,
click here. View the source and you will see there are no headers, it is simply text.