"chaochichen" wrote:
According to the online SDK doc at http://sdkdocs.roku.com/display/sdkdoc/roUrlEvent, "...All headers are returned regardless of the status code". I am getting zero headers from GetResponseHeadersArray() when response code is 40x on my Roku 3 with firmware version 5.0 build 8045. This function only works when response code is 200. So, it looks like Roku has never fixed the GetResponseHeadersArray() bug since 2010?
If your channel is only intended to run on Roku 2 and 3 devices, you can use the
RetainBodyOnError method of the roUrlTransfer object.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)