Hi,
I've got a basic test application working which sends some data to a PHP page on my website. It was all working fine until I used GetDeviceID() to put the unique device ID into the Post message:
SetWindowSize( 1024, 768, 0 )
SetPrintSize(15)
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
http = CreateHTTPConnection()
SetHTTPHost( http, "www.glasstowers.co.uk", 0 )
sID$ = getdeviceid()
sPost$ = "name="+sID$+"&org=ABC"
SendHTTPRequestASync( http, "testreg.php", sPost$)
while GetHTTPResponseReady(http) = 0
Print( "Connecting..." )
Sync()
endwhile
response$ = GetHTTPResponse(http)
CloseHTTPConnection(http)
DeleteHTTPConnection(http)
// main loop
do
Print( "Server response: " + response$ )
Sync()
loop
This bombs out completely.
Strangely, over here,when the &org= part of the Post data is longer than 'ABC' it doesn't crash!
Also, if I don't use GetDeviceID(), it doesn't crash!
I'd appreciate it if anyone could try this, run it a few times and report back. I'm using Alpha 10.
Thanks very much,
James