110,537
社区成员
发帖
与我相关
我的任务
分享
<body>
<form name="myform" method="post" action="test.php">
<input type="text" name="my1" />
<input type="submit" name="mybutton" value="out" />
</form>
<?php
echo $my1;
?>
</body>
WebClient wc = new WebClient();
string uploadstring;
string html;
uploadstring = "my1=haha&mybutton=out";
html = wc.UploadString("http://96.0.72.67/test/test.php", uploadstring);
Console.WriteLine (html);
int length = this.Request.ContentLength;
byte[] bytes = this.Request.BinaryRead(length);
string result = UTF8Encoding.UTF8.GetString(bytes);