Redirecting in CefGlue

62 views
Skip to first unread message

Christian LeMoussel

unread,
May 5, 2015, 11:39:20 AM5/5/15
to cef...@googlegroups.com

I'm trying to create a CefResponse from this redirection test Url : http://httpbin.org/redirect/1 It's a 302 redirection to http://httpbin.org/get

In my GetResponseHeaders override, I perform the following actions:

/// <summary>
/// Retrieve response header information.
/// http://xilium.bitbucket.org/cefglue/doc/html/AE00F235.htm
/// </summary>
protected override void GetResponseHeaders(CefResponse response, out long responseLength, out string redirectUrl)
{
    CefResponse wrcResponse = _cefUrlRequestClient.Response;

    responseLength = _cefUrlRequestClient.DataLength;

    if (wrcResponse.Status == 302) // probably should look for other 3xx redirects
    {
        // Redirect using HTTP 302

        // TODO Redirection .....

    }

} 

But response.Status is always 200 not 302

How do we achieve redirecting in CefGlue?

Thanks in advance.

Dmitry Azaraev

unread,
May 5, 2015, 12:09:48 PM5/5/15
to cef...@googlegroups.com
You already ask this question in issue tracker.

https://bitbucket.org/xilium/xilium.cefglue/issue/110/redirecting-in-cefglue


If you initiate request with CefUrlRequest it is walk by redirect chains for you. You are interested in next CEF issue https://bitbucket.org/chromiumembedded/cef/issue/1329 .


    --
    You received this message because you are subscribed to the Google Groups "CefGlue" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to cefglue+u...@googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.



    --
    Best regards,
       Dmitry

    Christian LeMoussel

    unread,
    May 5, 2015, 1:28:00 PM5/5/15
    to cef...@googlegroups.com, dmitry....@gmail.com
    Dmitry,

    I Use CefUrlRequest, this means that it continues through the redirect but how to get the target Url http://httpbin.org/get ?

    Best regards,

    Christian

    Reply all
    Reply to author
    Forward
    0 new messages