Files
doc-exports/docs/obs/tool-obsutil/obs_11_0068.html
weihongmin1 a41a4e0331 OBS Util 0115 Version
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com>
Co-authored-by: weihongmin1 <weihongmin1@huawei.com>
Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
2026-02-17 10:18:57 +00:00

18 lines
2.3 KiB
HTML

<a name="obs_11_0068"></a><a name="obs_11_0068"></a>
<h1 class="topictitle1">Configuring an HTTP Proxy for obsutil</h1>
<div id="body1565073212249"><div class="section" id="obs_11_0068__section128961758101714"><p id="obs_11_0068__p1996110176182">You can configure an HTTP proxy in either of the following ways:</p>
</div>
<p id="obs_11_0068__p17287125884118">Method 1: Set the <strong id="obs_11_0068__b58722613115">proxyUrl</strong> parameter in the <strong id="obs_11_0068__b2705137181119">.obsutilconfig</strong> file, for example, <strong id="obs_11_0068__b1701655171118">proxyUrl=http://username:password@your-proxy:8080</strong>.</p>
<p id="obs_11_0068__p1368003020435">Method 2: Use the system environment variable <strong id="obs_11_0068__b2010541612122">HTTPS_PROXY</strong> or <strong id="obs_11_0068__b723242141211">HTTP_PROXY</strong>, for example, <strong id="obs_11_0068__b91001033201214">HTTPS_PROXY=http://username:password@your-proxy:8080</strong>.</p>
<div class="note" id="obs_11_0068__note213965410444"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="obs_11_0068__ul16412357164410"><li id="obs_11_0068__li1241255724414">HTTP proxy format: <strong id="obs_11_0068__b278005301319">http://[<em id="obs_11_0068__i18426179141414">Username</em>:<em id="obs_11_0068__i36131112151419">Password</em>@]<em id="obs_11_0068__i134941325131414">Proxy server address</em>:<em id="obs_11_0068__i13511029101418">Port number</em></strong>. The <em id="obs_11_0068__i1083411818157">Username</em> and <em id="obs_11_0068__i1217220188154">Password</em> are optional.</li><li id="obs_11_0068__li1834728104619">The <strong id="obs_11_0068__b123635241167">proxyUrl</strong> parameter and system environment variables are in the following priority order: <strong id="obs_11_0068__b1145055019162">proxyUrl</strong> &gt; <strong id="obs_11_0068__b1586710538161">HTTPS_PROXY</strong> &gt; <strong id="obs_11_0068__b811819414178">HTTP_PROXY</strong>.</li><li id="obs_11_0068__li1922273451615">The user name and password cannot contain colons (:) and at signs (@), which will result in parsing errors.</li></ul>
</div></div>
<p id="obs_11_0068__p3795132194"></p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_11_0033.html">Best Practices</a></div>
</div>
</div>