diff options
-rw-r--r-- | config | 2 | ||||
-rwxr-xr-x | module/network/Request.py | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -3,7 +3,7 @@ port = 7272 password = pwhere [webinterface] -activated = True +activated = False port = 8080 username = User password = webpw 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) |