diff options
author | spoob <spoob@gmx.de> | 2009-08-27 21:28:50 +0200 |
---|---|---|
committer | spoob <spoob@gmx.de> | 2009-08-27 21:28:50 +0200 |
commit | 836e34327fc2f946f7844a7fd6cf4f3439ba4317 (patch) | |
tree | 429436e85713349ee2bbad1f8e23364438bd2f2f /module | |
parent | favicon fix (diff) | |
download | pyload-836e34327fc2f946f7844a7fd6cf4f3439ba4317.tar.xz |
Fixed Zippyshare.com
Diffstat (limited to 'module')
-rwxr-xr-x | module/network/Request.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/module/network/Request.py b/module/network/Request.py index 99c04e055..b30766ef2 100755 --- a/module/network/Request.py +++ b/module/network/Request.py @@ -9,6 +9,7 @@ import base64 import cookielib from gzip import GzipFile import time +from os import sep import urllib from cStringIO import StringIO @@ -89,7 +90,9 @@ class Request: self.pycurl.setopt(pycurl.CONNECTTIMEOUT, 30) self.pycurl.setopt(pycurl.NOSIGNAL, 1) self.pycurl.setopt(pycurl.NOPROGRESS, 0) - self.pycurl.setopt(pycurl.COOKIEFILE, "") + cookie_file = "module" + sep + "cookies.txt" + self.pycurl.setopt(pycurl.COOKIEFILE, cookie_file) + self.pycurl.setopt(pycurl.COOKIEJAR, cookie_file) self.pycurl.setopt(pycurl.PROGRESSFUNCTION, self.progress) self.pycurl.setopt(pycurl.AUTOREFERER, 1) self.pycurl.setopt(pycurl.HEADERFUNCTION, self.write_header) |