Example #1
0
        private CookieContainer GetCookieContainerViaHelper(Uri uri)
        {
            string headers = string.Empty;

            try
            {
                _serviceUsed = true;

                headers = _remoteService.Service.GetCookiesForUrl(uri);
            }
            catch
            {
                try
                {
                    // Try once more
                    headers = _remoteService.Service.GetCookiesForUrl(uri);
                }
                catch
                {
                }
            }

            return(HttpCookieManager.GetCookieContainerFromString(uri, headers));
        }
Example #2
0
 private static CookieContainer GetCookieContainerNormal(Uri uri)
 {
     return(HttpCookieManager.GetCookieContainerUri(uri));
 }