Running into difficulty deploying system.net.http* scripts on client network. Attempting to run the following test call in 3 different scenarios:
# Create the JythonHttpClient.
client = system.net.httpClient()
# Sent a GET request.
response = client.get("https://httpbin.org/get", params={"a": 1, "b": 2})
print response
# Validate the response.
if response.good:
# Do something with the response
print response.json['args']['a']
Test 1: Executing from script console on my PC: Success.
Test 2: Running the same call from Postman on PC on client network: Success.
Test 3: Executing from any Ignition source on client network: Failure. See below.
If this is like a true old school proxy setup and not something transparent, i.e. there's a host/IP for the proxy server that you can get from IT, you could try adding something like this at the beginning of your script:
from java.lang import System
System.setProperty("https.proxyHost", "get.thisfromit.com")
A third option would be to set it permanently in ignition.conf. I think it depends whether you will always need this set up for any HTTP(S) call on this gateway/network or not.
edit: err, and where the calls originate from. Setting it in ignition.conf only helps when they originate from gateway scope, as opposed to Vision Client or Designer.