C# Class WebHelpers, code

Mostra file Open project: shendongnian/code Class Usage Examples

Public Methods

Method Description
MultipartFormDataPost ( string postUrl, string userAgent, Dictionary, values, string boundary ) : HttpWebResponse,

Post the data as a multipart form

PostForm ( string postUrl, string userAgent, string contentType, string formData ) : HttpWebResponse,

Post a form

RandomHexDigits ( int count ) : string

Generate random hex digits

Private Methods

Method Description
MakeMultipartForm ( Dictionary, values, string boundary ) : string

Turn the key and value pairs into a multipart form

Method Details

MultipartFormDataPost() public static method

Post the data as a multipart form
public static MultipartFormDataPost ( string postUrl, string userAgent, Dictionary, values, string boundary ) : HttpWebResponse,
postUrl string
userAgent string
values Dictionary,
boundary string
return HttpWebResponse,

PostForm() public static method

Post a form
public static PostForm ( string postUrl, string userAgent, string contentType, string formData ) : HttpWebResponse,
postUrl string
userAgent string
contentType string
formData string
return HttpWebResponse,

RandomHexDigits() public static method

Generate random hex digits
public static RandomHexDigits ( int count ) : string
count int
return string