diff --git a/phoneClients/windowsPhone/GPSTracker/MainPage.xaml.cs b/phoneClients/windowsPhone/GPSTracker/MainPage.xaml.cs index 46166b2..4c0fecb 100644 --- a/phoneClients/windowsPhone/GPSTracker/MainPage.xaml.cs +++ b/phoneClients/windowsPhone/GPSTracker/MainPage.xaml.cs @@ -84,7 +84,8 @@ new KeyValuePair("date", DateTime.Now.ToString(@"yyyy-MM-dd\%20HH:mm:ss")), // formatted for mysql datetime format), new KeyValuePair("locationmethod", locationMethod), new KeyValuePair("distance", (totalDistanceInMeters / 1609).ToString("0.0")), // in miles - new KeyValuePair("phonenumber", "windowsPhoneUser"), //Windows.Phone.System.Analytics.HostInformation.PublisherHostId), + new KeyValuePair("username", "windowsPhoneUser"), + new KeyValuePair("phonenumber", "867-5309"), new KeyValuePair("sessionid", sessionID), // guid new KeyValuePair("accuracy", accuracy), // in meters new KeyValuePair("extrainfo", "httpCount-" + httpCount.ToString()), @@ -92,7 +93,7 @@ }); HttpClient httpClient = new HttpClient(); - HttpResponseMessage responseMessage = await httpClient.PostAsync(defaultUploadWebsite, httpContent); + HttpResponseMessage responseMessage = await httpClient.GetAsync(defaultUploadWebsite, httpContent); responseMessage.EnsureSuccessStatusCode(); Debug.WriteLine(String.Format("{0:d/M/yy h:mm:ss tt} ", DateTime.Now) + "sendGPS statusCode: " + @@ -314,4 +315,4 @@ } } } -} \ No newline at end of file +}