2009-04-22, 05:11
I am writing a plugin for wtso.net(Watch The Simpsons Online).
i am having a problem with cookies though.
script download link
pastebin of the script
The problem is in the last step of grabbing the video url
i am grabbing a episodes html file to for the swf link.
example
http://cold-link.com/vid/3a464818/.swf
it sets a cookie when i retrieve it.
example
Set-Cookie PHPSESSID=7f21cb75e7d0b036fbb8a52098eeab60; path=/
Expires Thu, 19 Nov 1981 08:52:00 GMT
the link actually redirects to
example
http://player.cold-link.com/player.swf?f...ffle=false
It uses the cookie set before the redirect in its header
example
Cookie PHPSESSID=7f21cb75e7d0b036fbb8a52098eeab60
i grab the file parameter from this url like below.
example
http://cold-link.com/xml/2948ab0486eb756...6e7db/.xml
I need to grab this url using the same cookie. The local proxy i use for debugging indicates that the cookie is not getting sent for xml file though. It does however get sent to the redirected url.
I suspect my code is faulty but i am not sure.
does it have to do with the expiration set in the past?
Thanks for any help.
i am having a problem with cookies though.
script download link
pastebin of the script
The problem is in the last step of grabbing the video url
i am grabbing a episodes html file to for the swf link.
example
http://cold-link.com/vid/3a464818/.swf
it sets a cookie when i retrieve it.
example
Set-Cookie PHPSESSID=7f21cb75e7d0b036fbb8a52098eeab60; path=/
Expires Thu, 19 Nov 1981 08:52:00 GMT
the link actually redirects to
example
http://player.cold-link.com/player.swf?f...ffle=false
It uses the cookie set before the redirect in its header
example
Cookie PHPSESSID=7f21cb75e7d0b036fbb8a52098eeab60
i grab the file parameter from this url like below.
example
http://cold-link.com/xml/2948ab0486eb756...6e7db/.xml
I need to grab this url using the same cookie. The local proxy i use for debugging indicates that the cookie is not getting sent for xml file though. It does however get sent to the redirected url.
I suspect my code is faulty but i am not sure.
does it have to do with the expiration set in the past?
Thanks for any help.