C# Class SteamBot.SteamWeb

ファイルを表示 Open project: Top-Cat/SteamBot Class Usage Examples

Public Methods

Method Description
DoLogin ( string username, string password ) : CookieCollection

Executes the login by using the Steam Website.

Fetch ( string url, string method, NameValueCollection data = null, CookieContainer cookies = null, bool ajax = true ) : string
Request ( string url, string method, NameValueCollection data = null, CookieContainer cookies = null, bool ajax = true ) : HttpWebResponse
ValidateRemoteCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors policyErrors ) : bool

Private Methods

Method Description
GetHexVal ( char hex ) : int
HexToByte ( string hex ) : byte[]
SubmitCookies ( CookieContainer cookies ) : void

Method Details

DoLogin() public static method

Executes the login by using the Steam Website.
public static DoLogin ( string username, string password ) : CookieCollection
username string
password string
return System.Net.CookieCollection

Fetch() public static method

public static Fetch ( string url, string method, NameValueCollection data = null, CookieContainer cookies = null, bool ajax = true ) : string
url string
method string
data System.Collections.Specialized.NameValueCollection
cookies System.Net.CookieContainer
ajax bool
return string

Request() public static method

public static Request ( string url, string method, NameValueCollection data = null, CookieContainer cookies = null, bool ajax = true ) : HttpWebResponse
url string
method string
data System.Collections.Specialized.NameValueCollection
cookies System.Net.CookieContainer
ajax bool
return System.Net.HttpWebResponse

ValidateRemoteCertificate() public static method

public static ValidateRemoteCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors policyErrors ) : bool
sender object
certificate X509Certificate
chain X509Chain
policyErrors SslPolicyErrors
return bool