/// <summary> /// Constructor allowing the setting of the url and items to post. /// </summary> /// <param name="url">the url for the post.</param> /// <param name="values">The values for the post.</param> public PostSubmitter(string url, NameValueCollection values) : this(url) { m_values = values; }
/// <summary> /// Posts the supplied data to specified url. /// </summary> /// <param name="url">The url to post to.</param> /// <param name="values">The values to post.</param> /// <returns>a string containing the result of the post.</returns> public async Task<string> PostAsync(string url, NameValueCollection values) { m_values = values; return await this.PostAsync(url); }