Proxy support

DataMind Oda can reach the internet through an HTTP proxy. It reads the proxy settings that programs on this computer use; this page covers which settings it reads, where their values come from, what always stays direct, and what the programs Oda starts receive.

Set up a proxy

  1. Choose where the values live: the environment you launch Oda from, or the Oda home folder's .env file. An exported value always wins over the file.
  2. Set http_proxy for ordinary requests and https_proxy for secure ones, or the general all_proxy for both. Each value is the proxy's address, for example http://proxy.example.com:8080. If the proxy needs a user name and password, put them in the address itself.
  3. Start Oda again. The values are read once, when Oda starts, so a change applies from the next start.

Which settings Oda reads

Where the values come from

What always stays direct

The leave-alone list

When a value cannot be used

What the programs Oda starts receive

Command execution covers what a command sees of your settings.

Questions, answered

Which settings does Oda read for the proxy?

http_proxy for ordinary requests, https_proxy for secure requests, all_proxy as a general address that backs both, and no_proxy as the list of addresses to leave alone. The lower-case spelling is read first and the upper-case one is accepted; on Windows the two spellings are read as one name. A name that is set but empty counts as unset.

What happens when only all_proxy is set?

The general address backs both kinds of request. For each kind Oda still looks at the setting for that kind first, and a secure request falls back to the ordinary address last. A setting Oda refused is the exception: that kind connects directly instead of borrowing another setting's address.

Can a project folder set my proxy?

No. A .env file in the folder you launch from may not set these names; set the value in the environment you launch Oda with, or in the Oda home folder's .env. An exported value wins over the file. Startup and diagnostics has the full rules for the files.

Does traffic to my company network go through the proxy?

Oda does not exempt it. Only this computer's own addresses are always direct; an address on your company network takes the same route as any other request unless you add it to the leave-alone list. Reading web pages is separate: the built-in page reader refuses private addresses on its own rules, whether or not a proxy is set, as Direct web fetching explains.

Which proxy addresses does Oda accept?

An address that begins with http:// or https:// and parses as an address. A SOCKS address, a PAC address, or a value that cannot be read as an address is noted once, skipped, and that kind of request connects directly; Oda never replaces it with another setting's address. The note names the setting that has the problem, never the value you wrote.

Why does a program see my general address under http_proxy and https_proxy?

Because programs read the per-kind names. When you set only the general address, Oda also fills it into http_proxy and https_proxy, so a program routes like Oda does. A setting you wrote yourself reaches a program exactly as you wrote it, spelling included, and the leave-alone list a program receives is always the resolved one.

I listed a host to leave alone, but requests to it still used the proxy. Why?

Check three things. If you changed the list after Oda started, start Oda again: the list is read once, at launch. If the entry carries a port, it covers only that port, so a request to another port still uses the proxy. And a range entry such as 10.0.0.0/8 matches nothing; write each address separately.

How do I check that Oda uses my proxy?

Watch your proxy's own connection log while Oda does something that reaches the internet, such as reading a public page: the connection should appear there. If it does not, confirm the values are visible to the environment you launch Oda from, then start Oda again; the values are read once, when it starts.

Oda cannot reach the internet through my proxy. What should I check?

  1. The address begins with http:// or https:// and parses as an address.
  2. A note that a value was skipped names the setting that has the problem; fix that value, and remember that your other settings keep working.
  3. The right kind is set: the general address backs both kinds, and a secure request falls back to the ordinary address last.
  4. The value sits in the environment you launch Oda with or in the Oda home folder's .env, and Oda was started again after the change.
  5. If your proxy inspects secure traffic, its certificate must be trusted before the next start; Network proxies in Oda covers that side.