HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.jandown.com/fetch.php");
request.Referer = "http://www.jandown.com/link.php?ref=YObPZUIwfZ";
request.ContentType = "multipart/form-data; boundary=---------------------------7dd732b10abe"; var data=@"-----------------------------7dd732b10abe
Content-Disposition: form-data; name="code"YObPZUIwfZ
-----------------------------7dd732b10abe--";byte[] postData = encoding.GetBytes(data);//postDataStr即为发送的数据,格式还是和上次说的一样
request.Referer = "http://www.jandown.com/link.php?ref=YObPZUIwfZ";
request.ContentType = "multipart/form-data; boundary=---------------------------7dd732b10abe"; var data=@"-----------------------------7dd732b10abe
Content-Disposition: form-data; name="code"YObPZUIwfZ
-----------------------------7dd732b10abe--";byte[] postData = encoding.GetBytes(data);//postDataStr即为发送的数据,格式还是和上次说的一样
各种字串我都实验了。无法保存成torrent文件呢。
string retString = streamReader.ReadToEnd();
不应该取字符串,而应该写二进制文件