This is some blitzPlus code to send a GET to a php script, ive been using it to send highscore data, etc. Any way ive decided to change develpment over to BMAX but im having issues with BMAX networking stuff.
In Plus i just open a TCPStream to write to, but Max seems a little more complex with sockets and streams etc.
Ive looked around the forums but cant find what im looking for. Could 1 of you pros BMAX this for me or explain a little about sockets. etc.
In Plus i just open a TCPStream to write to, but Max seems a little more complex with sockets and streams etc.
Ive looked around the forums but cant find what im looking for. Could 1 of you pros BMAX this for me or explain a little about sockets. etc.
SendGET("/somephpscript.php?data=somedata&data2=somemoredata") Function SendGET(Path$) Local Host$="localhost" www=OpenTCPStream(Host$,80) If www=0 Then Print "Cannot connect to Host!" Else WriteLine www,"GET "+Path$+" HTTP/1.1" WriteLine www,"Host: "+Host$ WriteLine www,"User-Agent: Palouza" WriteLine www,"Accept: */*" WriteLine www,"" CloseTCPStream www EndIf End Function