cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
tgardner4
Level II

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 ACCEPTED SOLUTIONS

Accepted Solutions

Re: Set a web proxy for New Http Request

This is available in JMP 15.

View solution in original post

Re: Set a web proxy for New Http Request

It's in the Internet Options

Proxy Settings.jpg

View solution in original post

Re: Set a web proxy for New Http Request

OK.

What you are looking for is Proxy User in the Scripting Index.

That should get you what you need.

View solution in original post

12 REPLIES 12

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
Level II

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

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

Re: Set a web proxy for New Http Request

This is available in JMP 15.

ih
Super User (Alumni) ih
Super User (Alumni)

Re: Set a web proxy for New Http Request

Hi @bryan_boone, do you know how to use this new option added to JMP 15?  I can't seem to find it in the documentation.

Re: Set a web proxy for New Http Request

It's in the Internet Options

Proxy Settings.jpg

ih
Super User (Alumni) ih
Super User (Alumni)

Re: Set a web proxy for New Http Request

Aah, I was looking for a way to do this per call.  Thank you.

Re: Set a web proxy for New Http Request

Proxy Settings.jpgYou can do that, too

It's in the Scripting Index.

 

However most networks are "auto configured" these days. I there some other context?

-Bryan

ih
Super User (Alumni) ih
Super User (Alumni)

Re: Set a web proxy for New Http Request

I am trying to pass different credentials to a proxy server in different parts of a script, while passing a different credentials entirely to the destination site.  I don't see anything in the scripting index or help files related to this, am I missing something?