[#OSSL_HTTP_adapt_proxy]
= OSSL&lowbar;HTTP&lowbar;adapt&lowbar;proxy
:mrdocs:

Choose an HTTP(S) proxy string, applying no&lowbar;proxy exclusions and environment defaults&period;

== Synopsis

Declared in `&lt;openssl&sol;http&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
char const*
OSSL&lowbar;HTTP&lowbar;adapt&lowbar;proxy(
    char const* proxy,
    char const* no&lowbar;proxy,
    char const* server,
    int use&lowbar;ssl);
----

== Return Value

Constant proxy hostname string to use, or NULL when no proxy should be used&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *proxy*
| Explicit proxy hostname, or NULL to use http&lowbar;proxy&sol;HTTP&lowbar;PROXY (or https variants when `use&lowbar;ssl)&period;`
| *no&lowbar;proxy*
| Exclusion list (comma&sol;whitespace), or NULL to use no&lowbar;proxy&sol;NO&lowbar;PROXY&period;
| *server*
| Destination host&semi; if listed in the exclusion set, no proxy is used&period;
| *use&lowbar;ssl*
| Nonzero selects HTTPS proxy environment variables when `proxy` is NULL&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
