Multipart Http Client for Posting values and files to a RESTful API

This is a simple http client for Windows Phone 7 developers to access the RESTful API services with Multipart data

MultipartHttpClient multipartHttpClient = new MultipartHttpClient("http://someapiurl.com", "POST");
multipartHttpClient.AddParameter("key", "value");
multipartHttpClient.AddFile("filePath", "MIME Type");
multipartHttpClient.ProcessCompleted += new MultipartHttpClient.MultipartHttpClientHandler(multipartHttpClient_ProcessCompleted);
multipartHttpClient.MakeRequest();

void multipartHttpClient_ProcessCompleted(object sender, MultiPartHttpEventArgs e)
{
//e.ByteResult
}

Last edited Nov 5, 2012 at 7:12 AM by sirwanimayur, version 6