httpredirect answers ?
hi i wanna add some extra movie to my plugin but i'm stuck little bit.

web site provide link to a php page (with facebook video link), this page convert link with some additions(security code etc.) and gives new link to video. but i cant read answers from php page.

i thing php page use httpredirect to go to new link.

First link

And response link

any advice ? and i'm not coder.just following requested
Thumbs Up 
Ok i find solution to continue my code. i hope it helps to someone..

bold parts help to read that Smile

req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv: Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
match=re.compile('<embed src="\?file=(.+?)&').findall(link)
video = match[0]
resp = urllib2.urlopen(video)
url2 = resp.geturl()

print url2

Logout Mark Read Team Forum Stats Members Help
httpredirect answers ?0
This forum uses Lukasz Tkacz MyBB addons.