def post_api(self, api_path):
options = json.dumps(self.options)
options = options if isinstance(options, bytes) else options.encode('utf8')
request = urllib.request.Request(self.arachni_url + api_path, options)
request.add_header('Content-Type', 'application/json')
return urllib.request.urlopen(request).read().decode('utf8')
评论列表
文章目录