I had been focusing on a task in which i've to publish discuss by wordpress blog which should retain the text user joined in text box.I've been attempting to user HttpWebRequesthowever it fails and returns 404 not found. The link isn't damaged.here's my code

forefront test purpose i've hard coded the records in string post

 string post = "author=" + HttpUtility.UrlEncode("afnan") + "&email=" + HttpUtility.UrlEncode("ifi@ifi.com") + "&url=" + HttpUtility.UrlEncode("abcd.com") +
                    "&comment=" + HttpUtility.UrlEncode("no comments");
                HttpWebRequest wrWebRequest = WebRequest.Create("http://testing.autoprofitbot.com/blogtest/2011/05/13/call-3-computer-repair-services-put-to-test-4/wp-comments-post.php?") as HttpWebRequest;

                wrWebRequest.Method = "POST";
                wrWebRequest.ContentLength = post.Length;
                wrWebRequest.ContentType = "application/x-www-form-urlencoded";
                wrWebRequest.CookieContainer = new CookieContainer();

                //// Post to the login form.
                StreamWriter swRequestWriter = new
                StreamWriter(wrWebRequest.GetRequestStream());
                swRequestWriter.Write(post);
                swRequestWriter.Close();

                // Get the response.
                HttpWebResponse hwrWebResponse =
                (HttpWebResponse)wrWebRequest.GetResponse();

                // Have some cookies.
                CookieCollection ccCookies = hwrWebResponse.Cookies;

                // Read the response
                StreamReader srResponseReader = new
                StreamReader(hwrWebResponse.GetResponseStream());
                string strResponseData = srResponseReader.ReadToEnd();
                srResponseReader.Close();
                webBrowser1.DocumentText = strResponseData;

You will find 3 issues with your code:

  1. the publish data lacks 2 parameters
  2. the WebRequest.Create isn't correct
  3. the referrer url is missing use livehttpheaders or httpfox to obtain the correct headers format!