public static RandomHexDigits ( int count ) : string | ||
count | int | |
return | string |
/// <summary> /// Post the data as a multipart form /// </summary> public static HttpWebResponse MultipartFormDataPost(string postUrl, string userAgent, Dictionary<string, string> values) { string formDataBoundary = "---------------------------" + WebHelpers.RandomHexDigits(12); string contentType = "multipart/form-data; boundary=" + formDataBoundary; string formData = WebHelpers.MakeMultipartForm(values, formDataBoundary); return WebHelpers.PostForm(postUrl, userAgent, contentType, formData); }