romeroej
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2011
02:11 PM
Roku and WUPLOAD
Hello All,
i used to use Megaupload as my "cdn". And used my premiun account to fetch videos and watch them on my Roku. Now i have to use WUPLOAD. however im not able to set my Premiun account (so i cannot stream the videos).
I have tried to use a 'POST' to login but it doenst seem to be working. (perhaps im not using the correct post.)
I was wondering if somebody has been able to get their ROKU to authenticate with WUPLOAD.
p.d with megaupload is very easy as they have static cookies for the users. wupload generates a new one on each login.
Any help would be awsome.
Merry Xmas!
i used to use Megaupload as my "cdn". And used my premiun account to fetch videos and watch them on my Roku. Now i have to use WUPLOAD. however im not able to set my Premiun account (so i cannot stream the videos).
I have tried to use a 'POST' to login but it doenst seem to be working. (perhaps im not using the correct post.)
I was wondering if somebody has been able to get their ROKU to authenticate with WUPLOAD.
p.d with megaupload is very easy as they have static cookies for the users. wupload generates a new one on each login.
Any help would be awsome.
Merry Xmas!
6 REPLIES 6

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2011
05:15 PM
Re: Roku and WUPLOAD
The roUrlTransfer component doesn't store cookies automatically, so you'll probably need to read the cookies from the headers on each response and make sure you send them back in with each GET/POST. Here's a thread from awhile back that might help you get started: viewtopic.php?f=34&t=37430&p=243831#p243844
I think there may be an example with cookies in the latest SDK, but I'm not positive about that...
I think there may be an example with cookies in the latest SDK, but I'm not positive about that...
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)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
romeroej
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2011
07:44 AM
Re: Roku and WUPLOAD
Ty TheEndless.
the issue is that i dont know how to get the head() from the post request i perform ( i use postfromstring and the only thing i get back is a int)
if i perform a head() after the post im guessing the state has already been lost. (because im not getting the expected headers. im only getting them as if i just did a get on a regualr page)
thanks in advance.
The headers im getting is as i havent "logged in"
the issue is that i dont know how to get the head() from the post request i perform ( i use postfromstring and the only thing i get back is a int)
if i perform a head() after the post im guessing the state has already been lost. (because im not getting the expected headers. im only getting them as if i just did a get on a regualr page)
thanks in advance.
ir = CreateObject("roUrlTransfer")
irport = CreateObject("roMessagePort")
ir.SetPort(irport)
ir.SetUrl("http://www.wupload.com/account/login")
ir.PostFromString("email=myuser&redirect=%2Ffile%2F2615632212%2FSMDST1E01.mp4&password=mypassword")
headers = ir.Head()
printAA(headers.GetResponseHeaders())
The headers im getting is as i havent "logged in"
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2011
08:46 AM
Re: Roku and WUPLOAD
If you want to get the headers returned from your POST, you have to use AsyncPostFromString and then GetResponseHeaders or GetResponseHeadersArray when you receive the event.
-JT
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.
romeroej
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2011
10:24 AM
Re: Roku and WUPLOAD
renojim, but when i do a head() doesnt the state get lost? over what can i do the GetResponseHeaders? only on the Head() response i know i can call the responseheaders?
romeroej
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2011
10:59 AM
Re: Roku and WUPLOAD
nvm i can do it on the response of port event wait. but it seems im not being able to login correctly 😞
romeroej
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2011
05:54 AM
Re: Roku and WUPLOAD
i migrated to filenium. and now its workink using basic authentication.