0

HTTP redirect support?

We would like to insert ads into the widget served by Openx ad management system.
Openx usually answers with HTTP redirect (302) and sends back the URL of the jpg/png ad. It works on the PC browsers but doesn't work in our widget.
Does the widget engine support HTTP redirects?
Should the widget follow a 302 redirect answer?

by
7 Replies
  • QUOTE (peter.rakos @ Mar 20 2011, 12:11 PM) <{POST_SNAPBACK}>
    We would like to insert ads into the widget served by Openx ad management system.
    Openx usually answers with HTTP redirect (302) and sends back the URL of the jpg/png ad. It works on the PC browsers but doesn't work in our widget.
    Does the widget engine support HTTP redirects?
    Should the widget follow a 302 redirect answer?

    There shouldn't be a problem with what you're trying to do. The engine should follow the redirect just like a browser. Could you provide some code so I can see how you're putting the image in the DOM?
    0
  • QUOTE (Benjamin Toll @ Mar 21 2011, 10:44 AM) <{POST_SNAPBACK}>
    There shouldn't be a problem with what you're trying to do. The engine should follow the redirect just like a browser. Could you provide some code so I can see how you're putting the image in the DOM?


    1) Insert of the image is quite simple:
    CODEBOX
        UpdateSnippet: function(URL)
    {
    this.controls.Logo.setSource(URL);
    }

    controls.Logo is a simple KONtx.element.Image element. URL points to an OpenX server which responds a 302 redirect answer.

    2) Communication seems to be more interesting. Firebug shows the following:

    OpenX sends an answer with a 302 HTTP code and a valid Location value in the Response header and includes (??) a text into the package ("Failed to ...").
    PC browsers follow the Location value but widgets don't.

    Request and Response headers are the following:
    0
  • When dealing with OpenX in the past with Connected TV widgets, I've found that setting the src attribute works better than the setSource method, also consider using a random value as a cache-buster. Make sure you are using the Image element (KONtx.element.Image).

    CODE
    UpdateSnippet: function(URL)
    {
    this.controls.Logo.src = URL+"&amp;cb="+Math.random();;
    }


    Hope this helps.

    --Noble Metrics
    0
  • QUOTE (peter.rakos @ Mar 20 2011, 12:11 PM) <{POST_SNAPBACK}>
    We would like to insert ads into the widget served by Openx ad management system.
    Openx usually answers with HTTP redirect (302) and sends back the URL of the jpg/png ad. It works on the PC browsers but doesn't work in our widget.
    Does the widget engine support HTTP redirects?
    Should the widget follow a 302 redirect answer?


    Hi.
    I have similar problem with redirect.

    Did You find answer for your situation?

    I put url address in src for KONtx.element.Image.
    In browser with this url address I can easy get image but after automatic redirect.
    With direct url address I can't get image - must use begin address and after this is automatic redirect.

    In KONtx.element.Image for this url I get error:
    KFImageView: Can't load image

    Maybe, someone can help?

    TV: Samsung LE32B650
    Yahoo Widget Engine 5.0.0
    Widget Application Framework 1.3.12 C



    It will be great if you or someone can help.

    Best regards
    0
  • May be it is not a redirect issue. Can you give me the URL you are using? If it is a gif image, you would get "Can't load image" error since gifs are not supported by the engine.

    Thanks,
    Vivek
    0
  • May be it is not a redirect issue. Can you give me the URL you are using? If it is a gif image, you would get "Can't load image" error since gifs are not supported by the engine.

    Thanks,
    Vivek




    Hi, All.

    After tests we know that our problems after https redirect tied with no sertificated https sertificate.
    Now we want get sertificated https sertificate and I hope it help in our problem.

    We don't use gif images.
    0
  • QUOTE (peter.rakos @ Mar 20 2011, 12:11 PM) <{POST_SNAPBACK}>
    We would like to insert ads into the widget served by Openx ad management system.
    Openx usually answers with HTTP redirect (302) and sends back the URL of the jpg/png ad. It works on the PC browsers but doesn't work in our widget.
    Does the widget engine support HTTP redirects?
    Should the widget follow a 302 redirect answer?
    0

Recent Posts

in General - Yahoo! TV Widgets