From 3c6873b027e3ce2348f7ef9236592302668be890 Mon Sep 17 00:00:00 2001 From: mkaay Date: Fri, 4 Feb 2011 20:40:26 +0100 Subject: share-online.biz premium fix --- module/network/HTTPRequest.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'module/network/HTTPRequest.py') diff --git a/module/network/HTTPRequest.py b/module/network/HTTPRequest.py index bcd2c696c..42b7aaf51 100644 --- a/module/network/HTTPRequest.py +++ b/module/network/HTTPRequest.py @@ -124,12 +124,15 @@ class HTTPRequest(): self.c.lastUrl = url if post: + self.c.setopt(pycurl.POST, 1) if not multipart: post = urlencode(post) self.c.setopt(pycurl.POSTFIELDS, post) else: post = [(x, str(quote(y)) if type(y) in (str, unicode) else y ) for x,y in post.iteritems()] self.c.setopt(pycurl.HTTPPOST, post) + else: + self.c.setopt(pycurl.POST, 0) if referer and self.lastURL: self.c.setopt(pycurl.REFERER, self.lastURL) -- cgit v1.2.3