我想送这样一个简单的HTTP请求发送HTTP请求:编码我的字符串通过C#
var client = new WebClient();
string myString="this is the string i want to send";
message = client.DownloadString("http://www.viralheat.com/api/sentiment/review.xml?text=" + myString + "&api_key="+currentKey);
但有些我送串包括#或&或这样的人物,所以我想在发送它之前首先对字符串进行编码,因为如果它包含这些特殊字符而不被编码,则会引发错误。
有用的信息,+1 –