@name HTTP communications test
@inputs 
@outputs [Receive Send]:string
@persist Message:array [Quit Read]:string 
@trigger 
runOnHTTP(1)
runOnChat(1)
if(first()){
    Message=array()
    Message:pushString("http://capnmaim.dlinkddns.com:8000/Upload/upload/chat.php")
    Message:pushString("?action=")
    
    Message:pushString("channelmessage") #command
    Message:pushString("&file=")
    
    Message:pushString("") #put a file 
    Message:pushString("&steam=")
    
    Message:pushString("")
    Message:pushString("&message=")
    
    Message:pushString("")
    
    Quit="<file.php>?action=quit&steam=" #append the steam ID
    Read="<file.php>?action=read&steam="
}

Message1=Message:clone()
Message1[5,string]="testing.txt"
Message1[7,string]=owner():steamID()
Message1[9,string]="This is a test to see if it works at all."
Send=Message1:concat()
httpRequest(Send)

if(httpClk()){
    print(httpData())
}

