如何使用windows phone 8中的参数发送url

时间:2014-03-15 14:29:23

标签: c# php xml windows-phone-8

我想从windows phone 8获取2个参数到php索引文件,使用get或post方法 任何解决方案?

1 个答案:

答案 0 :(得分:1)

WebClient webClient = new WebClient();
webClient.DownloadStringCompleted += (s, e) =>
{

};
webClient.DownloadStringAsync(new Uri(String.Format("http://example.com?par1={0}&par2={1}", "param1", "param2"), UriKind.RelativeOrAbsolute));