C# Class SteamBot.SteamWeb

Afficher le fichier Open project: Top-Cat/SteamBot Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

DoLogin() public static méthode

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

Fetch() public static méthode

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
Résultat string

Request() public static méthode

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
Résultat System.Net.HttpWebResponse

ValidateRemoteCertificate() public static méthode

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