SteamBot.Trade.Fetch C# (CSharp) Method

Fetch() protected method

protected Fetch ( string url, string method, NameValueCollection data = null, bool sendLoginData = true ) : string
url string
method string
data System.Collections.Specialized.NameValueCollection
sendLoginData bool
return string
		protected string Fetch (string url, string method, NameValueCollection data = null, bool sendLoginData = true)
		{
			var cookies = new CookieContainer();
			if (sendLoginData) {
				cookies.Add (new Cookie ("sessionid", sessionId, String.Empty, SteamCommunityDomain));
				cookies.Add (new Cookie ("steamLogin", steamLogin, String.Empty, SteamCommunityDomain));
			}

			return SteamWeb.Fetch(url, method, data, cookies);
		}