I play a video url using streaming player on blackberry. If the url returns “200” status code it play successfully.
When i pass the below url, it returns “302” http status code.It won’t play on streaming player.
When i check the statuscode for 302 its says redirect url.
When i pass the url on browser, it calls automatically below the redirect url.
How can i get the redirect url programatically on blackberry.?
pls help me.
In the headers of the response, retrieve the value of the header ‘Location’, it contains the redirect url. This is standard in HTTP protocol
Edit: Real quick sample on how to get the location header (could be written a lot better and safer)