这里我的代码是
$url="http://www.example.com";
$post_data="username=dssasdasd&extension=123";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$post_data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$output = curl_exec ($ch);
$status = curl_getinfo($output, CURLINFO_HTTP_CODE);
if ($status == 200)
{echo "Successfully Sended";}
else{echo "Try Again";}
curl_close ($ch);
我需要使用 Webclient C# 发送这些数据。