From ecd6b573f72aee113fe9e7cb5440758e6760cfdb Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 15 Sep 2010 14:17:17 +0000 Subject: [PATCH] added method parameter to the queryPage function --- lib/request/connect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/request/connect.py b/lib/request/connect.py index 5365e9aa0..8d62e2d6c 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -272,7 +272,7 @@ class Connect: return page, responseHeaders @staticmethod - def queryPage(value=None, place=None, content=False, getSeqMatcher=False, silent=False): + def queryPage(value=None, place=None, content=False, getSeqMatcher=False, silent=False, method=None): """ This method calls a function to get the target url page content and returns its page MD5 hash or a boolean value in case of @@ -307,7 +307,7 @@ class Connect: if kb.queryCounter % conf.saFreq == 0: Connect.getPage(url=conf.safUrl, cookie=cookie, direct=True, silent=True, ua=ua) - page, headers = Connect.getPage(get=get, post=post, cookie=cookie, ua=ua, silent=silent) + page, headers = Connect.getPage(get=get, post=post, cookie=cookie, ua=ua, silent=silent, method=method) if content: return page, headers