Any ideas? Is it possible to do a POST using sockets instead?
int numTests = 1000; while (numTests > 0) { //write test data and show LED led.Write(true); Thread.Sleep(250); try { string strNewValue; //string strResponse; req = (HttpWebRequest)WebRequest.Create("http://SERVERNAME.com/PATH/TestInsert.php?"); req.Method = "POST"; req.ContentType = "application/x-www-form-urlencoded"; req.KeepAlive = false; // Set values for the request back strNewValue = "TestID=''&TestDesc=AWholeBunchOfTestDataDoesItMatterHowMuchWePass"; req.ContentLength = strNewValue.Length; // Write the request stOut = new StreamWriter(req.GetRequestStream()); stOut.Write(strNewValue); stOut.Dispose(); stOut.Close(); req.Dispose(); } catch (Exception ex) { Debug.Print(ex.Message.ToString()); } //hide LED led.Write(false); Thread.Sleep(250); numTests--; } Debug.Print("Test complete");