webinspect.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:webinspectapi 作者: target 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号