Revision: 7073 Author: multichill Date: 2009-07-17 11:03:57 +0000 (Fri, 17 Jul 2009)
Log Message: ----------- http GET already sends cookies, now POST also sends cookies. This is for example needed when you want to use import in the api.
Modified Paths: -------------- trunk/pywikipedia/query.py
Modified: trunk/pywikipedia/query.py =================================================================== --- trunk/pywikipedia/query.py 2009-07-15 21:32:58 UTC (rev 7072) +++ trunk/pywikipedia/query.py 2009-07-17 11:03:57 UTC (rev 7073) @@ -78,7 +78,7 @@ try: jsontext = "Nothing received" if params['action'] in postAC: - res, jsontext = site.postData(path, urllib.urlencode(params.items())) + res, jsontext = site.postData(path, urllib.urlencode(params.items()), cookies=site.cookies()) else: jsontext = site.getUrl( path, retry=True, data=data )
pywikipedia-svn@lists.wikimedia.org