update upload code
This commit is contained in:
parent
66f63f8622
commit
d727f902aa
6
Assets/Scripts/DataSet.cs
Normal file → Executable file
6
Assets/Scripts/DataSet.cs
Normal file → Executable 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;
|
||||
|
Loading…
Reference in New Issue
Block a user