t0mm0 lib - cookies

Eldorado

Moderator
Staff member
May 7, 2012
990
0
16
Has anyone successfully used t0mm0's common lib and the cookies?

I remember a couple threads on the old board where we chatted about it, but I didn't see any posts saying they were successful

Basically I'm trying to add login support for ShareBees, pass in the username/pword and grab the cookie is creates.. problem is whenever I try I get an empty cookie file

Some basic test code I've done:
Code:
from t0mm0.common.net import Net
net = Net(cookie_file='cookies.lwp')

url = 'http://www.sharebees.com/'
op = 'login'
data = {'op': op, 'login': login, 'password': password}
html = net.http_POST(url, data).content
net.save_cookies('cookiefile.lwp')
If I do this without his lib the old fashioned way I get the cookies no problem... any ideas?