‎08-24-2017 10:47 AM
I have seen this and other posts that show how to configure a proxy server for the http requests send via labview.
However I have configured a proxy server via an environment variable (`http_proxy` and `https_proxy`) which Labview seems to respect for *all* its http requests. But now I want to send a request *without* going via the proxy. How can I to that?
‎08-25-2017 11:19 AM
I don't think this can be done, HTTP only supports gateway proxies...
‎08-28-2017 01:41 AM
One workaround that I found is: You can add the domain that should be accessed to another environment variable `no_proxy`. Labview also respects this and then bypasses the proxy for the domains listed in the `no_proxy` variable.
So now I have three environment variables:
http_proxy: <the address of the proxy server> https_proxy: <the address of the proxy server> no_proxy: <addresses for which no proxy should be used>
Although this works, it would be nice if there would be an option to force the proxy override from Labview itself. I don't think this has something to do with HTTP itself. Especially because Labview takes the `http_proxy` environment variables in consideration when it makes connections, there should also be a way to override that from within labview. Just couldn't find it yet.
‎08-28-2017 05:17 AM
it has to do with curl which is used internally by the underlaying DLL that the HTTP Client library calls. Those environment variables are the way curl is meant to be controlled. Maybe there is an option in some low level curl API to override this but curl's origin is on Unix and there command line magic and environment variables are the way things work all the time.