update upload code

This commit is contained in:
Chris Midkiff 2020-06-22 11:42:44 -04:00
parent 66f63f8622
commit d727f902aa

6
Assets/Scripts/DataSet.cs Normal file → Executable file
View File

@ -31,14 +31,14 @@ namespace Assets.Scripts
{
streamWriter.Write(stringBuilder.ToString());
}
UploadToAstralQueen(string.Format("{0}-{1}-{2}", platform, participant, trial), stringBuilder.ToString());
UploadToMops(string.Format("{0}-{1}-{2}", platform, participant, trial), stringBuilder.ToString());
}
private void UploadToAstralQueen(string name, string data)
private void UploadToMops(string name, string data)
{
using (WebClient client = new WebClient())
{
string endpoint = "http://mops.bw.edu/hci/upload.php";
string endpoint = "https://mops.bw.edu/hci/upload.php";
client.Headers[HttpRequestHeader.ContentType] = "application/x-www-form-urlencoded";
string ud = "userStudyId=" + name + "&userStudyData=" + data;