Thanks Dan,
I have read those but it seems to imply ArcGIS Enterprise meaning ArcGIS Server is behind Portal.
E.g. the output from below is ArcGIS Online so I'm getting through the proxy ok
from arcgis.gis import GIS
gis = GIS(proxy_host="proxyuser:proxypassword@proxyipaddress",proxy_port=8080)
print(gis.properties.portalName)
But...
from arcgis.gis import GIS
gis = GIS("https://featureservices.thelist.tas.gov.au/arcgis","serviceusername","servicepassword",proxy_host="proxyuser:proxypassword@proxyipaddress",proxy_port=8080,verify_cert=False)
print(gis.properties.portalName)
Returns:
Untitled
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py in __init__(self, url, username, password, key_file, cert_file, verify_cert, set_active, client_id, profile, **kwargs) 257 client_id=self._client_id) 258 except Exception as e: --> 259 if str(type(e.args[0])) == "<class 'ssl.SSLError'>": 260 raise RuntimeError("An untrusted SSL error occurred when attempting to connect to the provided GIS.\n" 261 "If you trust this server and want to proceed, add 'verify_cert=False' as an "
IndexError: tuple index out of range