HttpPost

HttpPost is a .NET library that makes it easier to post form data and upload files via HTTP. It supports uri-encoded and Multipart (http-boundary) formats.

using (var post = new HttpPostRequest("http://example.com/post.php"))
{
post.AddField("field1", "value1");
post.AddField("field2", "value2");
post.AddField("field3", 3);
post.AddFile("imageSmall", @"C:\Users\Andrea\Desktop\img1.jpg");
post.AddFile("imageLarge", @"C:\Users\Andrea\Desktop\image2.png");

post.PostData();
}

Download HttpPost from CodePlex

Copyright (c) 2009-2013 at-my-window.blogspot.com