LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Force HTTP Connection to ignore System wide proxy settings

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?

0 Kudos
Message 1 of 4
(2,866 Views)

I don't think this can be done, HTTP only supports gateway proxies...

 

 

0 Kudos
Message 2 of 4
(2,813 Views)

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.

 

0 Kudos
Message 3 of 4
(2,792 Views)

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.

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 4
(2,784 Views)