def upload_settings(self, settings_file_path):
try:
data = {"scanSettings": ""}
files = {'file': (ntpath.basename(settings_file_path), open(settings_file_path, 'rb'),)}
except IOError as e:
return WebInspectResponse(success=False,
message="There was an error while handling the request{}.".format(e))
return self._request('PUT', '/webinspect/scanner/settings', data=data, files=files)
评论列表
文章目录