This project is read-only.
Project Description
PostClient is an easy-to-use, thread-safe utility which makes HTTP POST web requests. It is designed in Silverlight for Windows Phone 7.

It encapsulates HttpWebrequest and HttpWebResponse and works similarly to the WebClient class.

PostClient is found under "WindowsPhonePostClient" namespace and gets a dictionary of key-value pairs as the request parameters.

Example of use:

Dictionary<string, object> parameters = new Dictionary<string, object>();
parameters.Add("name", "Vangos");
parameters.Add("age", 23);

PostClient proxy = new PostClient(parameters);
proxy.DownloadStringCompleted += (sender, e) =>
if (e.Error == null)
//Process the result...
string data = e.Result;
proxy.DownloadStringAsync(new Uri("", UriKind.Absolute));

Last edited May 17, 2011 at 3:31 AM by Vangos, version 2