<div dir="ltr">FYI.<div><br></div><div>If your office's proxy server is authenticated with NTLM authentication,</div><div>use CNTLM <a href="http://cntlm.sourceforge.net/">http://cntlm.sourceforge.net/</a> , a proxy of proxy for NTLM-authenticated server.</div><div>Actually, my last office uses it :)</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-03-21 18:46 GMT+09:00 Nikos Karagiannidis <span dir="ltr"><<a href="mailto:nikoshaskell@gmail.com" target="_blank">nikoshaskell@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Thank you both for your help!<br><br></div>I have tried to embed a URI encoded username and password in the HTTP_PROXY setting but still did not work.<br></div>I have managed to find an alternative proxy by talking to the network department that does not require authentication! <br></div>So now "stack upgrade" works for me too! <br><br>I will continue with this workaround for now ...<br><br></div>many thanks!<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">Nikos</font></span><div><div class="h5"><br><div><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 21, 2018 at 6:05 AM, Yuji Yamamoto <span dir="ltr"><<a href="mailto:whosekiteneverfly@gmail.com" target="_blank">whosekiteneverfly@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">According to the error, you must set proxy user name and password to pass the authentication.<div><br></div><div>Like this:</div><div><br></div><div>

<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">HTTP_PROXY =<span> </span><a href="http://proxy-host:8080/" style="color:rgb(17,85,204)" target="_blank">http://username:password@pro<wbr>xy-host:8080</a><br></div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">HTTPS_PROXY =<span> </span></span><a href="http://proxy-host:8080/" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)" target="_blank">http://</a><a href="http://proxy-host:8080/" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">username:password@</a> proxy-host:8080<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span> </span></span> </div><div><br></div><div>Note that you must URI-encode the username or password if they include some meta-characters like a colon or an at-sign.<br><div><br></div><div>Besides,  stack 1.3.2 is too old!</div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-1714424316153676578h5">2018-03-21 2:00 GMT+09:00 Nikos Karagiannidis <span dir="ltr"><<a href="mailto:nikoshaskell@gmail.com" target="_blank">nikoshaskell@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-1714424316153676578h5"><div dir="ltr"><div><div><div><div><div><div><div><div>Hi all,<br><br></div>I am trying to run stack build, or stack update behind the corporate web proxy and I get the following error:<br><br>$ stack build<br>Downloading lts-11.1 build plan ...HttpExceptionRequest Request {<br>  host                 = "<a href="http://raw.githubusercontent.com" target="_blank">raw.githubusercontent.com</a>"<br>  port                 = 443<br>  secure               = True<br>  requestHeaders       = []<br>  path                 = "/fpco/lts-haskell/master//lts<wbr>-11.1.yaml"<br>  queryString          = ""<br>  method               = "GET"<br>  proxy                = Nothing<br>  rawBody              = False<br>  redirectCount        = 10<br>  responseTimeout      = ResponseTimeoutDefault<br>  requestVersion       = HTTP/1.1<br>}<br> (ProxyConnectException "<a href="http://raw.githubusercontent.com" target="_blank">raw.githubusercontent.com</a>" 443 (Status {statusCode = 407, statusMessage = "Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  )"}))<br><br></div>My stack version is:<br><br>$ stack --version<br>Version 1.3.2, Git revision 3f675146590da4f3edf768b89355f7<wbr>98229da2a5 x86_64 hpack-0.15.0<br><br></div>I have set the HTTP_PROXY and HTTPS_PROXY environment variables to a value of:<br></div>HTTP_PROXY = <a href="http://proxy-host:8080" target="_blank">http://proxy-host:8080</a><br></div>HTTPS_PROXY
= <a href="http://proxy-host:8080" target="_blank">http://proxy-host:8080</a>

<br><br></div>Can you help me how to achieve proxy authentication via stack?<br><br></div>thank you in advance!<span class="m_-1714424316153676578m_-8262736617103718655HOEnZb"><font color="#888888"><br><br></font></span></div><span class="m_-1714424316153676578m_-8262736617103718655HOEnZb"><font color="#888888">Nikos<br></font></span></div></div></div><span class="m_-1714424316153676578m_-8262736617103718655HOEnZb"><font color="#888888">

<p></p>

-- <br><span>
You received this message because you are subscribed to the Google Groups "haskell-stack" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:haskell-stack+unsubscribe@googlegroups.com" target="_blank">haskell-stack+unsubscribe@goog<wbr>legroups.com</a>.<br>
To post to this group, send email to <a href="mailto:haskell-stack@googlegroups.com" target="_blank">haskell-stack@googlegroups.com</a><wbr>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/haskell-stack/CAN0STeQPzM2SyxyYUiy3o2HS%2BDMw8sWmTcyWZHi-LwLANjY%2BtQ%40mail.gmail.com?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/ms<wbr>gid/haskell-stack/CAN0STeQPzM2<wbr>SyxyYUiy3o2HS%2BDMw8sWmTcyWZHi<wbr>-LwLANjY%2BtQ%40mail.gmail.com</a><wbr>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/op<wbr>tout</a>.<br>
</span></font></span></blockquote></div><span class="m_-1714424316153676578HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-1714424316153676578m_-8262736617103718655gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>山本悠滋<br>twitter: @igrep<br>GitHub: <a href="https://github.com/igrep" target="_blank">https://github.com/igrep</a></div><div>GitLab: <a href="https://gitlab.com/igrep" target="_blank">https://gitlab.com/igr<wbr>ep</a><br>Facebook: <a href="http://www.facebook.com/igrep" target="_blank">http://www.facebook.com/igrep</a><br>Google+: <a href="https://plus.google.com/u/0/+YujiYamamoto_igrep" target="_blank">https://plus.google.com/u/0/+Y<wbr>ujiYamamoto_igrep</a></div></div></div>
</font></span></div>
</blockquote></div><br></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>山本悠滋<br>twitter: @igrep<br>GitHub: <a href="https://github.com/igrep" target="_blank">https://github.com/igrep</a></div><div>GitLab: <a href="https://gitlab.com/igrep" target="_blank">https://gitlab.com/igrep</a><br>Facebook: <a href="http://www.facebook.com/igrep" target="_blank">http://www.facebook.com/igrep</a><br>Google+: <a href="https://plus.google.com/u/0/+YujiYamamoto_igrep" target="_blank">https://plus.google.com/u/0/+YujiYamamoto_igrep</a></div></div></div>
</div>