aboutsummaryrefslogtreecommitdiff
blob: aa9fc612bb0e04f52dd665a96a4f96e45712757c (plain)
1
2
3
4
5
6
7
8
proxy=${http_proxy#http://}
host=${proxy##*@}
auth=${proxy%@*}
if test "${auth}" != "${proxy}"; then
    export HTTP_PROXY_USER=${auth%%:*}
    export HTTP_PROXY_PASSWORD=${auth##*:}
fi
connect -H ${host} $1 $2