[C#] запрос на яндекс
почему не просто:
зачем ты параметры в content засовываешь?
?
Console.Write(DoHttpPOST("http://www.yandex.ru/yandsearch?rpt=rad&text=asdf";
зачем ты параметры в content засовываешь?
даже так не работает
так же "Cannot send a content-body with this verb-type."
так же "Cannot send a content-body with this verb-type."

эти строчки тоже нафиг убери
request.ContentType = "text/html";
request.ContentLength = content.Length;
using (Stream stream = request.GetRequestStream
stream.Write(content, 0, content.Length);
request.ContentType = "text/html";
request.ContentLength = content.Length;
using (Stream stream = request.GetRequestStream
stream.Write(content, 0, content.Length);
Ботай Yandex.XML
Спасибо и респект Даркгрею, проблема решена! 

Оставить комментарий
Eugenia_2005
Хочу с яндекса получить ответ на мой вопрос, программно, делаю программувыдает исключение "Cannot send a content-body with this verb-type."
Как с этим бороться?