BookmarkSubscribeRSS Feed
Choose Language Hide Translation Bar
Highlighted
tgardner4

Community Trekker

Joined:

Apr 23, 2015

Set a web proxy for New Http Request

I am trying to access a web API using the New Http Request and route the calls via a web proxy.  JMP support tells me that proxy settings are set at the OS level or the Environment Variable leves.  But my company does not allow changes to the OS or to the environment variables on our issued laptops.  Is anyone aware of a workaround that can force New Http Request to route through a proxy serve that I set for each call?

 

-Tim

3 REPLIES 3
bryan_boone

Staff

Joined:

Aug 20, 2015

Re: Set a web proxy for New Http Request

Do you mean proxy or vpn? They are different things.
If you mean vpn, then there's nothing HTTP Request can do.
If you mean proxy, then for JMP 14 (and 14.2) environment variables (most networks are set up with auto configure options) is your only option.
BTW... internet open would require a proxy, too. That is, this:

Open(
"https://en.wikipedia.org/wiki/ISO_4217",
HTML Table( 7, Column Names( 1 ), Data Starts( 2 ) )
);

shouldn't work either
Thanks,
Bryan.
tgardner4

Community Trekker

Joined:

Apr 23, 2015

Re: Set a web proxy for New Http Request

Thanks for the reply Brian.  My need is for web proxy support, not VPN.  The target users here are not allowed to set environment variables.  So I solved the issue by piping the https request to curl via JMP's Run Program function and then reading back the results into JMP.  Curl supports https over web proxy with the -x option. 

 
It's not urgent, but maybe in a future release if JMP it can support an option akin to -x in curl.
 
If anyone reading this is interested in the curl-based solution, just post a note here and I am happy to clean-up and share the code.
 
Tim
bryan_boone

Staff

Joined:

Aug 20, 2015

Re: Set a web proxy for New Http Request

We'll look into it for JMP 15.  Do you want to add it as a Wish List item?

Thanks for the feedback.

-Bryan