Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
skmayu
Visitor

roUrlTransfer disable redirect

Hi
Wondering if someone can suggest me how to write this using roUrlTransfer. Following is the python code (xbmc)

class NoRedirection(urllib2.HTTPErrorProcessor):
   def http_response(self, request, response):
       return response
   https_response = http_response
   
def dsf (content_id):
    try:
        opener = urllib2.build_opener(NoRedirection)
        response = opener.open('some web site')
        html= response.read()
        #print html
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.