In the v10 backup routine, we were passing "type=backup" as part of
the querystring in addition to POSTing it. This was causing a problem
with one v12.2 host, and that's why I'm just going to blame v12.2 for
the problem. It looks like the querystring parameter is not needed for
any of the other versions/hosts that I've tested against.
Returns the binary HTTPS response (i.e. the file).
"""
- url = self.base_url + '/webui/download?type=backup'
+ url = self.base_url + '/webui/download'
post_vars = {'type': 'backup'}
post_data = urllib.parse.urlencode(post_vars).encode('ascii')
with self.opener.open(url, post_data) as response: