我使用WebClient.UploadString方法向Web api发布JSON请求。 JSON字符串是通过将文本文件解析为JSON格式的字符串而创建的。如何在使用我的代码的请求正文中定义一个参数?它看起来像我只是将它添加到我的jsonPOSTString字符串变量的末尾? string result = "";
using (var client = new WebClient())
我想发送数据到一个PHP页面,它将其插入数据库。我得到了下面的代码从Sending data to php from windows phone从但却显示出一些错误: 在using:System.Net.WebClient:在using语句 使用的类型必须是隐式转换为System.IDisposable。 在UploadString:System.Net.WebClient不包含UploadStr