удалить одну мессагу: Code: req1 = (HttpWebRequest)HttpWebRequest.Create("http://vkontakte.ru/mail.php"); req1.UserAgent = "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; WebMoney Advisor; MRA 5.3 (build 02560); MRSPUTNIK 2, 0, 1, 54 SW; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"; req1.Accept = "image/gif, image/x-xbitmap, image/jpeg,image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*"; req1.Headers.Add("Accept-Language", "ru"); req1.ContentType = "application/x-www-form-urlencoded"; req1.CookieContainer = cookie; req1.Method = "POST"; byte[] SomeBytes = null; string FormParams = "act=a_delete&id=1048&out=0"; SomeBytes = Encoding.UTF8.GetBytes(FormParams); req1.ContentLength = SomeBytes.Length; Stream newStream = req1.GetRequestStream(); newStream.Write(SomeBytes, 0, SomeBytes.Length); newStream.Close(); result1 = (HttpWebResponse)req1.GetResponse(); ReceiveStream1 = result1.GetResponseStream(); sr = new StreamReader(ReceiveStream1, encode); запрос на удаление всех выделенных PHP: mark=del&m_search=%D0%9F%D0%BE%D0%B8%D1%81%D0%BA%20%D1%81%D0%BE%D0%BE%D0%B1%D1%89%D0%B5%D0%BD%D0%B8%D0%B9&out=0&st=0&filter=all&post%5B973%5D=1&post%5B971%5D=1&post%5B969%5D=1&post%5B964%5D=1&post%5B960%5D=1&post%5B958%5D=1&post%5B950%5D=1&post%5B945%5D=1&post%5B942%5D=1&post%5B941%5D=1&post%5B930%5D=1&post%5B922%5D=1&post%5B910%5D=1&post%5B906%5D=1&post%5B901%5D=1&post%5B899%5D=1&post%5B897%5D=1&post%5B895%5D=1&post%5B893%5D=1&post%5B892%5D=1 Сообщения удаляются по № post. Мое мнение: нужно определить последнее сообщение и крутить в форе до 0. максимум сообщений которые можно удалить за один запрос = 20 p.s. сам под контакт проги не писал, так что могу ошибаться
Неправильный твой запрос PHP: sQueryString = "mark=del&m_search=&out=0&st=0=&filter=all&post[37410]=1"; вот этот верный PHP: sQueryString = "mark=del&m_search=%D0%9F%D0%BE%D0%B8%D1%81%D0%BA%20%D1%81%D 0%BE%D0%BE%D0%B1%D1%89%D0%B5%D0%BD%D0%B8%D0%B9&out=0&st=0&filter=all&post%37410%5D=1" p.s. HTTPAnalyzer рулит