src/AppCore.cs
/// <summary>
/// Gets all, including http-only, cookies from WebBrowser component
/// </summary>
/// <param name="uri">URI which is used to get the cookies for</param>
/// <returns></returns>
Gets all, including http-only, cookies from WebBrowser component
Gets all including http - only cookies from WebBrowser component
private static string GetGlobalCookies(string uri)
        {
            string envCookies = Environment.GetEnvironmentVariable("FURDOWN_COOKIES");
            if (envCookies != null) return envCookies;
            #if !furdown_portable_core
            uint datasize = 1024;
            StringBuilder cookieData = new StringBuilder((int)datasize);
            if (InternetGetCookieEx(
                uri, null, cookieData, ref datasize, INTERNET_COOKIE_HTTPONLY, IntPtr.Zero
            ) && cookieData.Length > 0)
            {
                return cookieData.ToString();
            }
            else
            {
                return null;
            }
            #else
            return null;
            #endif
        }
private static string GetGlobalCookies ( string uri ) { string envCookies = Environment . GetEnvironmentVariable ( " " ) ; if ( envCookies != null ) return envCookies ; if ! furdown_portable_core uint datasize = 1024 ; StringBuilder cookieData = new StringBuilder ( ( int ) datasize ) ; if ( InternetGetCookieEx ( uri , null , cookieData , ref datasize , INTERNET_COOKIE_HTTPONLY , IntPtr . Zero ) && cookieData . Length > 0 ) { return cookieData . ToString ( ) ; } else { return null ; } else return null ; endif }
Gets all, including http-only, cookies from WebBrowser component
Gets all including http - only cookies from WebBrowser component
None
uri
string
URI which is used to get the cookies for
URI which is used to get the cookies for