C# Class RenRen.Plurk.HttpUtility

Contains helper HTTP methods not available in System.Net namespace.
ファイルを表示 Open project: rschiang/rsPlurkLib

Public Methods

Method Description
ParseQueryString ( String s ) : NameValueCollection

Parse an encoded query string using UTF8 encoding.

ParseQueryString ( String s, bool urlencoded, Encoding encoding ) : NameValueCollection

Parse a query string into a NameValueCollection using specified encoding settings.

UrlDecode ( string s ) : string

Decode an URL transmission-encoded string into its original representation using UTF8 encoding.

UrlDecode ( string s, Encoding encoding ) : string

Decode an URL transmission-encoded string into its original representation using specified encoding.

Private Methods

Method Description
HexToInt ( char h ) : int

Convert a hex character to its integer representation,

Method Details

ParseQueryString() public static method

Parse an encoded query string using UTF8 encoding.
public static ParseQueryString ( String s ) : NameValueCollection
s String The query string to parse.
return System.Collections.Specialized.NameValueCollection

ParseQueryString() public static method

Parse a query string into a NameValueCollection using specified encoding settings.
public static ParseQueryString ( String s, bool urlencoded, Encoding encoding ) : NameValueCollection
s String The query string to parse.
urlencoded bool Whether query string keys and values are URL encoded.
encoding System.Text.Encoding The encoding to use.
return System.Collections.Specialized.NameValueCollection

UrlDecode() public static method

Decode an URL transmission-encoded string into its original representation using UTF8 encoding.
public static UrlDecode ( string s ) : string
s string The string to decode.
return string

UrlDecode() public static method

Decode an URL transmission-encoded string into its original representation using specified encoding.
public static UrlDecode ( string s, Encoding encoding ) : string
s string The string to decode.
encoding System.Text.Encoding The encoding to use.
return string