0

这是一些代码:

var client = new WebClient();
client.BaseAddress = "http://localhost/";
client.Headers["Content-type"] = "application/x-www-form-urlencoded";
client.Proxy = null;
// The server gets the data
var responseStr = client.UploadString(url, data); 
...
// The server gets an empty post data
responseStr = client.UploadString(url, data); 

Webclient 应该是一次性的东西吗?

4

1 回答 1

0

嗯,你可能不能试试这个:

WebClient client = new WebClient();
client.BaseAddress = "http://localhost/something.php";
于 2012-07-10T06:05:34.237 回答