diff --git a/HackRequests/HackRequests.py b/HackRequests/HackRequests.py index 8706098..0964618 100644 --- a/HackRequests/HackRequests.py +++ b/HackRequests/HackRequests.py @@ -260,6 +260,7 @@ def http(self, url, **kwargs): post = kwargs.get("post", None) or kwargs.get("data", None) location = kwargs.get('location', True) locationcount = kwargs.get("locationcount", 0) + dataNeedUrlEncode = kwargs.get('dataEncode',True) proxy = kwargs.get('proxy', None) headers = kwargs.get('headers', {}) @@ -302,7 +303,9 @@ def http(self, url, **kwargs): except: pass try: - post = parse.urlencode(post) + if dataNeedUrlEncode: + post = parse.urlencode(post) + else: post = post.encode('utf-8') except: pass if "Content-Type" not in headers: