This project is read-only.

Project Description
HttpPost makes it easier to post form data and upload files via HTTP. Supports uri-encoded and Multipart (http-boundary) formats. Written in C#, just 10 KB

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();
}

Last edited May 13, 2012 at 10:37 AM by antiufo, version 8