2

I'm using python with urllib2 & cookielib and such to open a url. This url set's one cookie in it's header and two more in the page with some javascript. It then redirects to a different page.

I can parse out all the relevant info for the cookies being set with the javascript, but I can't for the life of me figure out how to get them into the cookie-jar as cookies.

Essentially, when I follow to the site being redirected too, those two cookies have to be accessible by that site.

To be very specific, I'm trying to login in to gomtv.net by using their "login in with a Twitter account" feature in python.

Anyone?

JJacobsson
  • 153
  • 7

1 Answers1

0

You can't set cookies for another domain - browsers will not allow it.

Riley Lark
  • 20,660
  • 15
  • 80
  • 128
  • Well, in this instance I am the browser. E.g. I'm doing client side scripting so I can just do whatever with the cookie-files on disk and such... – JJacobsson Nov 24 '10 at 09:50