CSharpTradeOffers.Web.Web.Fetch C# (CSharp) Method

Fetch() public method

Retries a Fetch until success or fail conditions have been met.
public Fetch ( string url, string method, string>.Dictionary data = null, CookieContainer cookies = null, bool xHeaders = true, string referer = "", bool isWebkit = false, int retryWait = 5000, int retryLimit = 5 ) : IResponse
url string The URL to request.
method string The method to be used. Ex: POST
data string>.Dictionary Dictionary containing the paramters to be sent in the URL or in the Stream, depending on the method.
cookies System.Net.CookieContainer A cookiecontainer with cookies to send.
xHeaders bool /// Special parameter, should only be used with requests that need "X-Requested-With: /// XMLHttpRequest" and "X-Prototype-Version: 1.7" ///
referer string Sets the referrer for the request.
isWebkit bool
retryWait int The TimeSpan in which to wait between requests.
retryLimit int The max number of requests to perform before failing.
return IResponse
        public IResponse Fetch(string url, string method,
            Dictionary<string, string> data = null,
            CookieContainer cookies = null, bool xHeaders = true, string referer = "", bool isWebkit = false, int retryWait = 5000, int retryLimit = 5)
        {
            IResponse response = RetryRequestProcessor(retryWait, retryLimit, url, method, data, cookies, xHeaders,
                referer, isWebkit);
            return response;
        }