From 430f568618e4a4efd826d4dae2a8ddbc3eacf40a Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 16 Jul 2009 09:45:21 +0200 Subject: fixed netload.in --- module/network/Request.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'module/network/Request.py') diff --git a/module/network/Request.py b/module/network/Request.py index ff50c34bc..30ffbcd3e 100755 --- a/module/network/Request.py +++ b/module/network/Request.py @@ -109,6 +109,9 @@ class Request: #def download(url, filename, reporthook = None, data = None): #default von urlretrieve auch None? # return self.downloader.urlretrieve(url, filename, reporthook, data) + def clear_cookies(self): + del self.cookies[:] + def add_proxy(self, protocol, adress): handler = urllib2.ProxyHandler({protocol: adress}) self.opener.add_handler(handler) -- cgit v1.2.3