0
任何人都知道如何通過使用HTTPWebrequest像web客戶端傳遞參數post方法如下所示請幫助我......如何傳遞參數如用戶名和密碼在Windows Phone 8使用http
WebClient sharegroupclient = new WebClient();
Uri uristring = null;
uristring = new Uri(uri);
sharegroupclient.Headers["Content-Type"] = "application/x-www-form-urlencoded";
sharegroupclient.Credentials = _groupaccount.GetCredentials();
string JsonStringParams = "group_admin=" + _groupaccount.Username + "&search=" + searchtext.Text + "&action=" + "search_group";
sharegroupclient.UploadStringCompleted += wc_RemoveUserGroupStringCompleted;
sharegroupclient.UploadStringAsync(uristring, "POST", JsonStringParams);